Mercurial > audlegacy
comparison contrib/xchat-audacious.py @ 2852:f5c37e128ae5 trunk
Fixes.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Tue, 19 Jun 2007 20:09:35 -0500 |
parents | 3b730938c9eb |
children | 548a1db694e6 |
comparison
equal
deleted
inserted
replaced
2851:3b730938c9eb | 2852:f5c37e128ae5 |
---|---|
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 | |
95 | 96 |
96 last_title = None | 97 last_title = None |
97 | 98 |
98 def presence_notification_dispatch(userdata=None): | 99 def presence_notification_dispatch(userdata=None): |
99 global ignore_services, last_title | 100 global ignore_services, last_title |
111 for i in slist: | 112 for i in slist: |
112 ctx = xchat.find_context(i) | 113 ctx = xchat.find_context(i) |
113 | 114 |
114 ctx.command("nickserv set qproperty np %s" % (title)) | 115 ctx.command("nickserv set qproperty np %s" % (title)) |
115 | 116 |
116 last_title = title | 117 last_title = title |
117 | 118 |
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(3000, presence_notification_dispatch) | 122 xchat.hook_timer(3000, presence_notification_dispatch) |
123 xchat.hook_timer(500, unset_ignore_services) | |
123 | 124 |
124 print "xchat-audacious $Id: xchat-audacious.py 4574 2007-05-16 07:46:17Z deitarion $ loaded" | 125 print "xchat-audacious $Id: xchat-audacious.py 4574 2007-05-16 07:46:17Z deitarion $ loaded" |