Browse Source

identify uses lower-case name

Helge Jung 9 years ago
parent
commit
7206851ac7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/ffpb_nodeinfo.py

+ 2 - 1
modules/ffpb_nodeinfo.py

@@ -36,7 +36,8 @@ def ffpb_identify(bot, trigger):
         # the check function already gives a bot reply, just exit here
         return
 
-    ident = trigger.group(2)
+    ident = trigger.group(2) or ""
+    ident = ident.lower()
     result = __batcave.identify(ident)
     if result is None:
         bot.say('Mist, ich erreiche den Detektiv nicht.')