[Otfbot-svn] r485 - contrib

allo at BerliOS allo
Sa Nov 1 20:54:45 CET 2008


Author: allo
Date: 2008-11-01 20:54:45 +0100 (Sat, 01 Nov 2008)
New Revision: 485

Modified:
   contrib/nobodyisperfectMod.py
Log:
fixed broken commandChar


Modified: contrib/nobodyisperfectMod.py
===================================================================
--- contrib/nobodyisperfectMod.py	2008-11-01 19:31:28 UTC (rev 484)
+++ contrib/nobodyisperfectMod.py	2008-11-01 19:54:45 UTC (rev 485)
@@ -231,7 +231,7 @@
 		
 	def default_nip(self):
 		self.NIPencoding=self.bot.config.get("encoding","UTF-8")
-		self.cchar=self.bot.config.get("commandChar", "", "main")
+		self.cchar=self.bot.config.get("commandChar", "!", "main")
 		if self.cchar == "":
 			self.cchar="!"
 		#self.nipdatadir=self.bot.config.get("datadir", "data/nobodyisperfectMod/", "NIP")
@@ -963,6 +963,7 @@
 
 
 	def command(self, user, channel, command, options):
+		print user, channel, command, options
 		if channel==self.bot.nickname and user!=self.gamemaster:
 			self.nip_buffer(user.split("!")[0], channel, command, options) # nipbuffer in query
 			return True




Mehr Informationen über die Mailingliste Otfbot-dev