mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-10-03 01:48:52 +02:00
Network: send whois requests using the original nick case
Fixes #1350. This works around an edge case in charybdis / ircd-seven where remote whois requests to a UID are not accepted if it is given in a different case.
This commit is contained in:
parent
8b2cbbc583
commit
beb1000c7e
@ -225,11 +225,9 @@ class Network(callbacks.Plugin):
|
||||
only necessary if the network is different than the network the command
|
||||
is sent on.
|
||||
"""
|
||||
# The double nick here is necessary because single-nick WHOIS only works
|
||||
# if the nick is on the same server (*not* the same network) as the user
|
||||
# giving the command. Yeah, it made me say wtf too.
|
||||
nick = ircutils.toLower(nick)
|
||||
# Here we use a remote server whois (double nick) to get idle/signon time.
|
||||
otherIrc.queueMsg(ircmsgs.whois(nick, nick))
|
||||
nick = ircutils.toLower(nick)
|
||||
self._whois[(otherIrc, nick)] = (irc, msg, {}, 'whois')
|
||||
whois = wrap(whois, ['networkIrc', 'nick'])
|
||||
|
||||
@ -241,11 +239,9 @@ class Network(callbacks.Plugin):
|
||||
only necessary if the network is different than the network the command
|
||||
is sent on.
|
||||
"""
|
||||
# The double nick here is necessary because single-nick WHOIS only works
|
||||
# if the nick is on the same server (*not* the same network) as the user
|
||||
# giving the command. Yeah, it made me say wtf too.
|
||||
nick = ircutils.toLower(nick)
|
||||
# Here we use a remote server whois (double nick) to get idle/signon time.
|
||||
otherIrc.queueMsg(ircmsgs.whowas(nick, nick))
|
||||
nick = ircutils.toLower(nick)
|
||||
self._whois[(otherIrc, nick)] = (irc, msg, {}, 'whowas')
|
||||
whowas = wrap(whowas, ['networkIrc', 'nick'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user