mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Fixed a few bugs
This commit is contained in:
parent
da27691eac
commit
c62a65e1ec
@ -31,6 +31,9 @@
|
|||||||
|
|
||||||
from baseplugin import *
|
from baseplugin import *
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
import ircmsgs
|
||||||
import callbacks
|
import callbacks
|
||||||
|
|
||||||
class Friendly(callbacks.PrivmsgRegexp):
|
class Friendly(callbacks.PrivmsgRegexp):
|
||||||
@ -42,7 +45,7 @@ class Friendly(callbacks.PrivmsgRegexp):
|
|||||||
def goodbye(self, irc, msg, match):
|
def goodbye(self, irc, msg, match):
|
||||||
"(?:good)?bye|adios|vale|ciao|au revoir|seeya|night"
|
"(?:good)?bye|adios|vale|ciao|au revoir|seeya|night"
|
||||||
if re.search(irc.nick, msg.args[1]):
|
if re.search(irc.nick, msg.args[1]):
|
||||||
self.reply('vale, amic(e|a)!')
|
irc.queueMsg(ircmsgs.privmsg(msg.args[0], 'seeya, d00d!'))
|
||||||
|
|
||||||
def exclaim(self, irc, msg, match):
|
def exclaim(self, irc, msg, match):
|
||||||
"([^\s]+)!"
|
"([^\s]+)!"
|
||||||
@ -50,6 +53,6 @@ class Friendly(callbacks.PrivmsgRegexp):
|
|||||||
irc.queueMsg(ircmsgs.privmsg(msg.args[0], '%s!' % msg.nick))
|
irc.queueMsg(ircmsgs.privmsg(msg.args[0], '%s!' % msg.nick))
|
||||||
|
|
||||||
|
|
||||||
|
Class = Friendly
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user