--- a/plugins/wtf_plugin.py Wed May 02 13:50:07 2007 +0200
+++ b/plugins/wtf_plugin.py Wed May 02 14:00:55 2007 +0200
@@ -9,14 +9,19 @@
word = parameters.upper() + "\t"
if not parameters:
- smsg(type, source, "Gimme an acronym!")
+ if type == 'private':
+ smsg(type, source, "Gimme an acronym!")
return
reply = ''.join(line for line in file(WTF_FILE) \
if line.startswith(word))
if not reply:
- reply = "Sorry, I don't know what " + parameters + " means..."
+ if type == 'private':
+ reply = "Sorry, I don't know what " + parameters + \
+ " means..."
+ else:
+ return
else:
reply= re.sub("\t+", ": ", reply.rstrip())