3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

bots: still allow setting modes on internal clients

This commit is contained in:
James Lu 2015-09-14 18:03:39 -07:00
parent 48573b6033
commit b8d6e1e2ef

View File

@ -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