mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-11-16 07:37:24 +01: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
|
only necessary if the network is different than the network the command
|
||||||
is sent on.
|
is sent on.
|
||||||
"""
|
"""
|
||||||
# The double nick here is necessary because single-nick WHOIS only works
|
# Here we use a remote server whois (double nick) to get idle/signon time.
|
||||||
# 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)
|
|
||||||
otherIrc.queueMsg(ircmsgs.whois(nick, nick))
|
otherIrc.queueMsg(ircmsgs.whois(nick, nick))
|
||||||
|
nick = ircutils.toLower(nick)
|
||||||
self._whois[(otherIrc, nick)] = (irc, msg, {}, 'whois')
|
self._whois[(otherIrc, nick)] = (irc, msg, {}, 'whois')
|
||||||
whois = wrap(whois, ['networkIrc', 'nick'])
|
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
|
only necessary if the network is different than the network the command
|
||||||
is sent on.
|
is sent on.
|
||||||
"""
|
"""
|
||||||
# The double nick here is necessary because single-nick WHOIS only works
|
# Here we use a remote server whois (double nick) to get idle/signon time.
|
||||||
# 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)
|
|
||||||
otherIrc.queueMsg(ircmsgs.whowas(nick, nick))
|
otherIrc.queueMsg(ircmsgs.whowas(nick, nick))
|
||||||
|
nick = ircutils.toLower(nick)
|
||||||
self._whois[(otherIrc, nick)] = (irc, msg, {}, 'whowas')
|
self._whois[(otherIrc, nick)] = (irc, msg, {}, 'whowas')
|
||||||
whowas = wrap(whowas, ['networkIrc', 'nick'])
|
whowas = wrap(whowas, ['networkIrc', 'nick'])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user