mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Removed old regexp docstrings.
This commit is contained in:
parent
c3b7ade6d0
commit
4d69806920
@ -401,7 +401,6 @@ class MoobotFactoids(callbacks.Privmsg):
|
||||
return (key, newfact)
|
||||
|
||||
def addFactoid(self, irc, msg, tokens):
|
||||
r"^(?!\x01)(.+?)\s+(?:is|_is_)\s+(.+)"
|
||||
# First, check and see if the entire message matches a factoid key
|
||||
channel = getChannel(msg)
|
||||
id = self._getUserId(irc, msg.prefix)
|
||||
@ -413,7 +412,6 @@ class MoobotFactoids(callbacks.Privmsg):
|
||||
irc.replySuccess()
|
||||
|
||||
def changeFactoid(self, irc, msg, tokens):
|
||||
r"(.+)\s+=~\s+(.+)"
|
||||
id = self._getUserId(irc, msg.prefix)
|
||||
(key, regexp) = map(' '.join,
|
||||
utils.itersplit('=~'.__eq__, tokens, maxsplit=1))
|
||||
@ -432,7 +430,6 @@ class MoobotFactoids(callbacks.Privmsg):
|
||||
irc.replySuccess()
|
||||
|
||||
def augmentFactoid(self, irc, msg, tokens):
|
||||
r"(.+?) is also (.+)"
|
||||
# Must be registered!
|
||||
id = self._getUserId(irc, msg.prefix)
|
||||
pairs = list(window(tokens, 2))
|
||||
@ -449,7 +446,6 @@ class MoobotFactoids(callbacks.Privmsg):
|
||||
irc.replySuccess()
|
||||
|
||||
def replaceFactoid(self, irc, msg, tokens):
|
||||
r"^no,?\s+(.+?)\s+is\s+(.+)"
|
||||
# Must be registered!
|
||||
channel = getChannel(msg)
|
||||
id = self._getUserId(irc, msg.prefix)
|
||||
|
Loading…
Reference in New Issue
Block a user