[Otfbot-svn] r102 - trunk/modules

allo at BerliOS allo
So Jun 10 20:33:12 CEST 2007


Author: allo
Date: 2007-06-10 20:33:12 +0200 (Sun, 10 Jun 2007)
New Revision: 102

Modified:
   trunk/modules/kiMod.py
Log:
no highlighting on random


Modified: trunk/modules/kiMod.py
===================================================================
--- trunk/modules/kiMod.py	2007-06-10 14:50:49 UTC (rev 101)
+++ trunk/modules/kiMod.py	2007-06-10 18:33:12 UTC (rev 102)
@@ -278,7 +278,9 @@
 			else:
 				number=random.randint(1,1000)
 				chance=int(self.bot.getConfig("kiMod_answerPercent", "50"))*10
-				if israndom or number < chance: #apply answerPercent only on answers(check for israndom)
+				if israndom:
+					self.bot.sendmsg(channel, reply, "UTF-8")
+				elif number < chance: #apply answerPercent only on answers
 					self.bot.sendmsg(channel, user+": "+reply, "UTF-8")
 
 	def connectionMade(self):




Mehr Informationen über die Mailingliste Otfbot-dev