--- a/plugins/wtf_plugin.py Wed May 02 19:38:00 2007 +0200
+++ b/plugins/wtf_plugin.py Wed May 02 20:10:16 2007 +0200
@@ -7,6 +7,8 @@
def handler_wtf(type, source, parameters):
parameters = parameters.rstrip(" ?\n").lstrip()
+
+ # 1 entry = "keyword\tdefinition"
word = parameters.upper() + "\t"
if not parameters:
@@ -14,6 +16,7 @@
smsg(type, source, "Gimme an acronym!")
return
+ # Look up the keyword in the wtf file... We may have several hits.
reply = ''.join(line for line in file(WTF_FILE) if line.startswith(word))
if not reply: