mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
AutoMode: Use protocols.irc.banmask when banning
This commit is contained in:
parent
775fe6fd4c
commit
89874f0c3f
@ -1,5 +1,6 @@
|
||||
###
|
||||
# Copyright (c) 2004, Jeremiah Fincher
|
||||
# Copyright (c) 2009, James Vega
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -79,7 +80,8 @@ class AutoMode(callbacks.Plugin):
|
||||
# We're not in the channel anymore.
|
||||
pass
|
||||
schedule.addEvent(unban, time.time()+period)
|
||||
irc.queueMsg(ircmsgs.ban(channel, msg.prefix))
|
||||
banmask =conf.supybot.protocols.irc.banmask.makeBanmask(msg.prefix)
|
||||
irc.queueMsg(ircmsgs.ban(channel, banmask))
|
||||
irc.queueMsg(ircmsgs.kick(channel, msg.nick))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user