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")
|
||||
newfact = pickOptions(fact)
|
||||
if newfact.startswith("<reply>"):
|
||||
newfact = newfact.replace("<reply>", "", 1)
|
||||
newfact = newfact.strip()
|
||||
newfact = newfact[7:].strip()
|
||||
type = "reply"
|
||||
elif newfact.startswith("<action>"):
|
||||
newfact = newfact.replace("<action>", "", 1)
|
||||
newfact = newfact.strip()
|
||||
newfact = newfact[8:].strip()
|
||||
type = "action"
|
||||
newfact = plugins.standardSubstitute(irc, msg, newfact)
|
||||
return (type, newfact)
|
||||
|
Loading…
Reference in New Issue
Block a user