Skip to content

Commit

Permalink
Adding mode command
Browse files Browse the repository at this point in the history
  • Loading branch information
Bra1nwash3d authored and Bra1nwash3d committed Aug 28, 2017
1 parent 0958e5e commit 6a0c82c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions qai_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,21 @@ def puppet(self, mask, target, args):
m = " ".join(args.get('WORDS'))
self.bot.privmsg(t, m)

@command(permission='admin', public=False, show_in_help_list=False)
@asyncio.coroutine
def mode(self, mask, target, args):
"""mode
%%mode <channel> <mode> <nick>
"""
#if not (yield from self.__isNickservIdentified(mask.nick)):
# return
self.bot.send_line('MODE {} {} {}'.format(
args.get('<channel>'),
args.get('<mode>'),
args.get('<nick>'),
), nowait=True)

@command(permission='admin', public=False, show_in_help_list=False)
@asyncio.coroutine
def reload(self, mask, target, args):
Expand Down

0 comments on commit 6a0c82c

Please sign in to comment.