Minor stylistic fixes (I thought there'd be more, but I solved another problem without messing with this plugin).

This commit is contained in:
Jeremy Fincher 2003-11-22 02:10:13 +00:00
parent 7784d21cde
commit 0e8891871f

View File

@ -164,12 +164,10 @@ class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp):
# definition of what the key is (i.e., "foo is bar") # definition of what the key is (i.e., "foo is bar")
newfact = pickOptions(fact) newfact = pickOptions(fact)
if newfact.startswith("<reply>"): if newfact.startswith("<reply>"):
newfact = newfact.replace("<reply>", "", 1) newfact = newfact[7:].strip()
newfact = newfact.strip()
type = "reply" type = "reply"
elif newfact.startswith("<action>"): elif newfact.startswith("<action>"):
newfact = newfact.replace("<action>", "", 1) newfact = newfact[8:].strip()
newfact = newfact.strip()
type = "action" type = "action"
newfact = plugins.standardSubstitute(irc, msg, newfact) newfact = plugins.standardSubstitute(irc, msg, newfact)
return (type, newfact) return (type, newfact)