Explorar o código

ffpb_fun: fix duplicate reaction to 'moin' and fix 'fake', too

Helge Jung %!s(int64=9) %!d(string=hai) anos
pai
achega
509610fe22
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      modules/ffpb_fun.py

+ 2 - 2
modules/ffpb_fun.py

@@ -38,7 +38,7 @@ def ffpb_greeting(bot, trigger):
     bot.say(greeting.format(trigger.nick, stats["nodes_active"], stats["clients_unique"]))
 
 
-@willie.module.rule(r'(?i)(m([o0]|\(\))[il1]n)[ \t!.]*$')
+@willie.module.rule(r'(?i)(m(o[l1]|0[il1])n)[ \t!.]*$')
 def ffpb_greeting_leet(bot, trigger):
     greeting = random.choice((
         'm0in {0}',
@@ -54,7 +54,7 @@ def ffpb_greeting2(bot, trigger):
     bot.say('o.O')
 
 
-@willie.module.rule(r'(?i)(alles )?fake[?!]?')
+@willie.module.rule(r'(?i)(alles )?fake[?!]?$')
 def ffpb_nofake(bot, trigger):
     msg = random.choice((
         u'zweifelt {0}s Glaubwürdigkeit an.',