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

allo at BerliOS allo
So Nov 2 15:18:44 CET 2008


Author: allo
Date: 2008-11-02 15:18:44 +0100 (Sun, 02 Nov 2008)
New Revision: 490

Modified:
   trunk/plugins/ircClient/humanMod.py
Log:
fixed missing function


Modified: trunk/plugins/ircClient/humanMod.py
===================================================================
--- trunk/plugins/ircClient/humanMod.py	2008-11-02 14:13:34 UTC (rev 489)
+++ trunk/plugins/ircClient/humanMod.py	2008-11-02 14:18:44 UTC (rev 490)
@@ -19,6 +19,12 @@
 #
 from lib import chatMod
 
+#same as in serverpart!
+def sendNames(server, network, channel):
+	if network in server.root.getNamedServices()['ircClient'].namedServices.keys():
+		names=[server.root.getNamedServices()['ircClient'].namedServices[network].kwargs['factory'].protocol.users[channel][nickname]['modchar'].strip()+nickname for nickname in server.getClient(network).users[channel].keys()]
+		server.names(server.name, "#"+network+"-"+channel, names)
+
 class Plugin(chatMod.chatMod):
 	def __init__(self, bot):
 		self.bot=bot




Mehr Informationen über die Mailingliste Otfbot-dev