[Twisted-Python] voiced/opped in twisted IRC
Mike.lifeguard
mike.lifeguard at gmail.com
Mon Dec 7 15:35:46 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
exarkun at twistedmatrix.com wrote:
> On 05:05 pm, mike.lifeguard at gmail.com wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello,
>>
>> I cannot see how to get whether a nick is voiced/opped currently in a
>> given channel in the twisted IRC framework. I see methhods of changing
>> modes, but not querying. Can this be easily done?
>
> This information is made available as part of the name list response.
> An op'd user has their name prefixed with "@". A voiced user has the
> "+" prefix.
>
> Jean-Paul
>
So I need to do a /names each time I want to check if someone is voiced?
That seems rather inefficient.
I suppose it is also in any privmsg from them, but I don't see a way to
get that from irc_PRIVMSG. I guess I can rewrite that...
BTW, at line 417, the H/G is here/gone.
- -Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAksdZx8ACgkQst0AR/DaKHtlQACgnP5q+ITEHTNQ8EKPUIzAf5+u
bxgAoMalSfAIXJRAw0OsVfZVGSEWP+TP
=L77y
-----END PGP SIGNATURE-----
More information about the Twisted-Python
mailing list