Procházet zdrojové kódy

Resolve missing command issue.

tags/v0.1^2
Ben Kurtovic před 14 roky
rodič
revize
fd18f468f4
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      earwigbot/irc/data.py

+ 2
- 2
earwigbot/irc/data.py Zobrazit soubor

@@ -63,10 +63,10 @@ class Data(object):
bot's name); self.is_command will be set to True, and self.trigger will bot's name); self.is_command will be set to True, and self.trigger will
store the trigger string. Otherwise, is_command will be set to False. store the trigger string. Otherwise, is_command will be set to False.
""" """
self._args = self.msg.strip().split()[1:]
self._args = self.msg.strip().split()


try: try:
self._command = self.args[0].lower()
self._command = self.args.pop(0).lower()
except IndexError: except IndexError:
return return




Načítá se…
Zrušit
Uložit