Services: do not send the bot's nick in ChanServ commands

On Atheme, Anope, and oftc-ircservices, /cs unban, invite, op, and voice
implicitly assume the caller if no nick is given. However, certain combinations
such as /cs invite *with* a nick are not supported on atheme per
https://github.com/atheme/atheme/issues/568, and cause rejoin-on-kick to +i
channels to fail.

This fixes one part of GH-1118.
This commit is contained in:
James Lu 2018-01-27 12:51:15 -08:00
parent eb1cb9bd76
commit add3ceb4e7
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ class Services(callbacks.Plugin):
chanserv = self.registryValue('ChanServ')
if chanserv:
msg = ircmsgs.privmsg(chanserv,
' '.join([command, channel, irc.nick]))
' '.join([command, channel]))
irc.sendMsg(msg)
else:
if log: