[Otfbot-svn] r496 - trunk/plugins/ircClient

allo at BerliOS allo
So Nov 30 22:10:24 CET 2008


Author: allo
Date: 2008-11-30 22:10:24 +0100 (Sun, 30 Nov 2008)
New Revision: 496

Modified:
   trunk/plugins/ircClient/commandsMod.py
Log:
restored reload-commands command


Modified: trunk/plugins/ircClient/commandsMod.py
===================================================================
--- trunk/plugins/ircClient/commandsMod.py	2008-11-17 15:28:24 UTC (rev 495)
+++ trunk/plugins/ircClient/commandsMod.py	2008-11-30 21:10:24 UTC (rev 496)
@@ -34,6 +34,9 @@
 	def command(self, user, channel, command, options):
 		user = user.split("!")[0] #only nick
 		if user != self.bot.nickname:
+			if command == "reload-command":
+				self.reload()
+				return
 			answer=self.respond(channel, user, command, options)
 			if answer != "":
 				if answer[0] == ":":




Mehr Informationen über die Mailingliste Otfbot-dev