Skip to content

Commit 5667d98

Browse files
author
lagaffe
committed
pass help in private again
1 parent c970076 commit 5667d98

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

chanconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
LesRepublicains(),
3636
Trump(),
3737
],
38-
"#titoufaitdestests": [
38+
"#vincentdev": [
3939
Sudo(),
4040
Ascii(),
4141
Topic(),

ircbot/plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ class HelpPlugin(BotPlugin):
8989
@BotPlugin.command(r"\!help +(#[^ ]+)")
9090
def tell_help_for_chan(self, msg):
9191
"""Affiche la liste des commandes pour un chan"""
92-
print("help")
9392
chan = msg.args[0].lower()
9493
if chan not in self.bot.channels:
9594
msg.reply("Pas de commande sur le chan %s" % chan, hilight=True)
9695
else:
9796
commands = self.bot.channels.get(chan, {}).get(ECommandType.COMMAND, [])
98-
msg.reply(self.bot.text.red("Aide pour " + chan))
97+
msg.reply(self.bot.text.red("Aide pour " + chan), private=True)
9998
for command in commands:
10099
if not command.public: # dont show not public commands, usefull to hide some internal commands
101100
continue
@@ -110,6 +109,5 @@ def tell_help_for_chan(self, msg):
110109
@BotPlugin.command(r"\!help")
111110
def tell_help(self, msg):
112111
"""Affiche la liste des commandes du chan où c'est demandé"""
113-
print("hello ?" + self.__str__())
114112
msg.args = [self.chan]
115113
self.tell_help_for_chan(msg)

0 commit comments

Comments
 (0)