aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py
index d352c256..a90f287f 100644
--- a/modules/commands/__init__.py
+++ b/modules/commands/__init__.py
@@ -263,7 +263,11 @@ class Module(ModuleManager.BaseModule):
def private_message(self, event):
if event["message_split"] and not event["action"]:
command = event["message_split"][0].lower()
+
+ # this should help catch commands when people try to do prefixed
+ # commands ('!help' rather than 'help') in PM
command = command.lstrip("".join(NON_ALPHANUMERIC))
+
args_split = event["message_split"][1:]
hook, args_split = self._find_command_hook(event["server"], command,