mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Minor stylistic fixes (I thought there'd be more, but I solved another problem without messing with this plugin).
This commit is contained in:
parent
7784d21cde
commit
0e8891871f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user