mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
coreplugin: send the RIGHT server desc in WHOIS replies
This commit is contained in:
parent
f4f8987873
commit
4c45533ecb
@ -74,7 +74,7 @@ def handle_whois(irc, source, command, args):
|
|||||||
f(server, 319, source, '%s :%s' % (nick, ' '.join(public_chans)))
|
f(server, 319, source, '%s :%s' % (nick, ' '.join(public_chans)))
|
||||||
# 312: sends the server the target is on, and its server description.
|
# 312: sends the server the target is on, and its server description.
|
||||||
f(server, 312, source, "%s %s :%s" % (nick, irc.servers[server].name,
|
f(server, 312, source, "%s %s :%s" % (nick, irc.servers[server].name,
|
||||||
irc.serverdata.get('serverdesc') or irc.botdata['serverdesc']))
|
irc.servers[server].desc))
|
||||||
# 313: sends a string denoting the target's operator privilege,
|
# 313: sends a string denoting the target's operator privilege,
|
||||||
# only if they have umode +o.
|
# only if they have umode +o.
|
||||||
if ('o', None) in user.modes:
|
if ('o', None) in user.modes:
|
||||||
|
Loading…
Reference in New Issue
Block a user