mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Changed to notice, stuck an extra empty line in.
This commit is contained in:
parent
385d803ec7
commit
363fa7e6ea
@ -59,6 +59,7 @@ conf.registerChannelValue(conf.supybot.plugins.RootWarner, 'warning',
|
|||||||
conf.registerChannelValue(conf.supybot.plugins.RootWarner, 'kick',
|
conf.registerChannelValue(conf.supybot.plugins.RootWarner, 'kick',
|
||||||
registry.Boolean(False, """Determines whether the bot will kick people who
|
registry.Boolean(False, """Determines whether the bot will kick people who
|
||||||
join the channel with an ident of 'root' or '~root'."""))
|
join the channel with an ident of 'root' or '~root'."""))
|
||||||
|
|
||||||
class RootWarner(callbacks.Privmsg):
|
class RootWarner(callbacks.Privmsg):
|
||||||
def doJoin(self, irc, msg):
|
def doJoin(self, irc, msg):
|
||||||
user = ircutils.userFromHostmask(msg.prefix)
|
user = ircutils.userFromHostmask(msg.prefix)
|
||||||
@ -66,7 +67,7 @@ class RootWarner(callbacks.Privmsg):
|
|||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
s = self.registryValue('warning', channel)
|
s = self.registryValue('warning', channel)
|
||||||
if self.registryValue('warn', 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):
|
if self.registryValue('kick', channel):
|
||||||
irc.queueMsg(ircmsgs.kick(channel, msg.nick, s))
|
irc.queueMsg(ircmsgs.kick(channel, msg.nick, s))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user