mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
bots: still allow setting modes on internal clients
This commit is contained in:
parent
48573b6033
commit
b8d6e1e2ef
@ -149,7 +149,8 @@ def mode(irc, source, args):
|
||||
if not (target in irc.users or target in irc.channels):
|
||||
irc.msg(source, "Error: Invalid channel or nick %r." % target)
|
||||
return
|
||||
elif target in irc.users and not irc.proto.allow_forceset_usermodes:
|
||||
elif target in irc.users and not utils.isInternalClient(irc, target) and \
|
||||
not irc.proto.allow_forceset_usermodes:
|
||||
irc.msg(source, "Error: this IRCd does not allow forcing user mode "
|
||||
"changes on other servers' users!")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user