mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Removed getCommands, which isn't being used by anything.
This commit is contained in:
parent
c2dbe9d8ae
commit
849b12ec8b
@ -344,15 +344,6 @@ def tokenize(s, channel=None):
|
|||||||
except ValueError, e:
|
except ValueError, e:
|
||||||
raise SyntaxError, str(e)
|
raise SyntaxError, str(e)
|
||||||
|
|
||||||
def getCommands(tokens):
|
|
||||||
"""Given tokens as output by tokenize, returns the command names."""
|
|
||||||
L = []
|
|
||||||
if tokens and isinstance(tokens, list):
|
|
||||||
L.append(tokens[0])
|
|
||||||
for elt in tokens:
|
|
||||||
L.extend(getCommands(elt))
|
|
||||||
return L
|
|
||||||
|
|
||||||
def findCallbackForCommand(irc, name):
|
def findCallbackForCommand(irc, name):
|
||||||
"""Given a command name and an Irc object, returns a list of callbacks that
|
"""Given a command name and an Irc object, returns a list of callbacks that
|
||||||
commandName is in."""
|
commandName is in."""
|
||||||
|
Loading…
Reference in New Issue
Block a user