bugfixing
This commit is contained in:
@@ -271,7 +271,7 @@ class XMPPTelegram(ComponentXMPP):
|
|||||||
|
|
||||||
def _min_args(self, num_args):
|
def _min_args(self, num_args):
|
||||||
if len(self.arguments) < num_args:
|
if len(self.arguments) < num_args:
|
||||||
raise WrongNumberOfArgsError("!{} needs at least {} arguments".format(self._command, num_args))
|
raise self.WrongNumberOfArgsError("!{} needs at least {} arguments".format(self._command, num_args))
|
||||||
|
|
||||||
def __init__(self, msg):
|
def __init__(self, msg):
|
||||||
self._command = msg["body"].split(" ")[0][1:]
|
self._command = msg["body"].split(" ")[0][1:]
|
||||||
|
|||||||
Reference in New Issue
Block a user