diff --git a/pyircbot/modulebase.py b/pyircbot/modulebase.py index 56706fc..4c4549d 100644 --- a/pyircbot/modulebase.py +++ b/pyircbot/modulebase.py @@ -235,7 +235,6 @@ class command(hook): for keyword in self.keywords: single = self._validate_prefixedcommand(msg, keyword, bot_nick) if single: - print(single) return single return False diff --git a/tests/modules/test_modinfo.py b/tests/modules/test_modinfo.py index 44e76b7..03b3526 100644 --- a/tests/modules/test_modinfo.py +++ b/tests/modules/test_modinfo.py @@ -19,11 +19,13 @@ def test_helpindex(helpbot): def test_help(helpbot): helpbot.feed_line(".help") - helpbot.act_PRIVMSG.assert_has_calls([call('#test', 'ModInfo: .help [command] show the manual for all or [commands]'), - call('#test', 'ModInfo: .helpindex show a short list of all commands')], - any_order=True) + helpbot.act_PRIVMSG.assert_has_calls( + [call('#test', 'ModInfo .help [command] show the manual for all or [commands] '), + call('#test', 'ModInfo .helpindex show a short list of all commands ')], + any_order=True) def test_help_one(helpbot): helpbot.feed_line(".help .helpindex") - helpbot.act_PRIVMSG.assert_called_once_with('#test', 'RTFM: .helpindex: helpindex show a short list of all commands') + helpbot.act_PRIVMSG.assert_called_once_with('#test', + 'RTFM: .helpindex: (.helpindex) show a short list of all commands')