mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
handlers: always send WHOIS reply numerics from our server
This fixes "/whois pylink.server TARGET" syntax sending replies from bad sources, when the target is NOT a PyLink client.
This commit is contained in:
parent
1cf560c465
commit
8e29e16144
@ -14,7 +14,7 @@ def handle_whois(irc, source, command, args):
|
||||
'doesn\'t exist in irc.users!', irc.name, target, source)
|
||||
return
|
||||
f = irc.proto.numeric
|
||||
server = irc.getServer(target) or irc.sid
|
||||
server = irc.sid
|
||||
nick = user.nick
|
||||
sourceisOper = ('o', None) in irc.users[source].modes
|
||||
sourceisBot = (irc.umodes.get('bot'), None) in irc.users[source].modes
|
||||
|
Loading…
Reference in New Issue
Block a user