Changed to notice, stuck an extra empty line in.

This commit is contained in:
Jeremy Fincher 2004-01-27 11:25:26 +00:00
parent 385d803ec7
commit 363fa7e6ea
1 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ conf.registerChannelValue(conf.supybot.plugins.RootWarner, 'warning',
conf.registerChannelValue(conf.supybot.plugins.RootWarner, 'kick',
registry.Boolean(False, """Determines whether the bot will kick people who
join the channel with an ident of 'root' or '~root'."""))
class RootWarner(callbacks.Privmsg):
def doJoin(self, irc, msg):
user = ircutils.userFromHostmask(msg.prefix)
@ -66,7 +67,7 @@ class RootWarner(callbacks.Privmsg):
channel = msg.args[0]
s = self.registryValue('warning', channel)
if self.registryValue('warn', channel):
irc.queueMsg(ircmsgs.privmsg(msg.nick, s))
irc.queueMsg(ircmsgs.notice(msg.nick, s))
if self.registryValue('kick', channel):
irc.queueMsg(ircmsgs.kick(channel, msg.nick, s))