mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +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):
|
if not (target in irc.users or target in irc.channels):
|
||||||
irc.msg(source, "Error: Invalid channel or nick %r." % target)
|
irc.msg(source, "Error: Invalid channel or nick %r." % target)
|
||||||
return
|
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 "
|
irc.msg(source, "Error: this IRCd does not allow forcing user mode "
|
||||||
"changes on other servers' users!")
|
"changes on other servers' users!")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user