Have #invite privmsg who invited

This commit is contained in:
Juhani Haverinen 2017-04-14 19:38:05 +03:00
parent f23c3925b9
commit 2efff2a812
1 changed files with 1 additions and 0 deletions

View File

@ -557,6 +557,7 @@ def parse((line, irc)):
invitenick = parsecmd(cmdline, 'nick')
if isauthorized(irc, chan, nick):
irc.send('INVITE %s %s' % (invitenick, chan))
irc.msg(invitenick, zwsp + '%s has invited you to %s' % (nick, chan))
else:
irc.msg(reply, zwsp + 'Usage #invite nick')
elif matchcmd(cmdline, '#help'):