Set +o/+v on a user if they're in the channel at the time of !addop/!addvoice
This commit is contained in:
parent
dee26c45be
commit
9be8c1d90c
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ class Module(object):
|
|||
automodes.append(mode)
|
||||
event["target"].set_user_setting(target_user.get_id(), "automodes",
|
||||
automodes)
|
||||
if event["target"] in target_user.channels:
|
||||
self._check_modes(event["target"], target_user)
|
||||
|
||||
event["stdout"].write("Added automode %s for '%s'" % (
|
||||
mode_name, target_user.nickname))
|
||||
def _remove_mode(self, event, mode, mode_name):
|
||||
|
|
Loading…
Reference in a new issue