comparison contrib/xchat-audacious.py @ 2851:3b730938c9eb trunk

Further improvements.
author William Pitcock <nenolod@atheme.org>
date Tue, 19 Jun 2007 17:02:19 -0500
parents b1390d9f35bf
children f5c37e128ae5
comparison
equal deleted inserted replaced
2850:b1390d9f35bf 2851:3b730938c9eb
90 90
91 def unset_ignore_services(userdata=None): 91 def unset_ignore_services(userdata=None):
92 global ignore_services 92 global ignore_services
93 93
94 ignore_services = 0 94 ignore_services = 0
95 return 1
96 95
97 last_title = None 96 last_title = None
98 97
99 def presence_notification_dispatch(userdata=None): 98 def presence_notification_dispatch(userdata=None):
100 global ignore_services, last_title 99 global ignore_services, last_title
114 113
115 ctx.command("nickserv set qproperty np %s" % (title)) 114 ctx.command("nickserv set qproperty np %s" % (title))
116 115
117 last_title = title 116 last_title = title
118 117
118 xchat.hook_timer(2000, unset_ignore_services)
119 return 1 119 return 1
120 120
121 presence_notification_dispatch() 121 presence_notification_dispatch()
122 xchat.hook_timer(60000, presence_notification_dispatch) 122 xchat.hook_timer(3000, presence_notification_dispatch)
123 xchat.hook_timer(2000, unset_ignore_services)
124 123
125 print "xchat-audacious $Id: xchat-audacious.py 4574 2007-05-16 07:46:17Z deitarion $ loaded" 124 print "xchat-audacious $Id: xchat-audacious.py 4574 2007-05-16 07:46:17Z deitarion $ loaded"