diff --git a/plugins/MoobotFactoids.py b/plugins/MoobotFactoids.py index 7283b5469..e745314d3 100644 --- a/plugins/MoobotFactoids.py +++ b/plugins/MoobotFactoids.py @@ -173,11 +173,6 @@ class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp): elif newfact.startswith(""): newfact = newfact[8:] type = "action" - elif newfact.startswith("see "): - newfact = newfact[4:] - type = "refer" - # shortcut the substitutions here - return (type, newfact) newfact = newfact.strip() newfact = plugins.standardSubstitute(irc, msg, newfact) return (type, newfact) @@ -234,11 +229,6 @@ class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp): irc.reply(text, prefixName=False) elif type == "define": irc.reply("%s is %s" % (key, text), prefixName=False) - elif type == "refer": - # text here is the new key to refer to - msg.args = [s.replace(key, text) for s in msg.args] - newtokens = [s.replace(key, text) for s in tokens] - self.invalidCommand(irc, msg, newtokens) else: irc.error("Spurious type from _parseFactoid.") return True diff --git a/test/test_MoobotFactoids.py b/test/test_MoobotFactoids.py index b0c6ce8d4..3f5fe98d1 100644 --- a/test/test_MoobotFactoids.py +++ b/test/test_MoobotFactoids.py @@ -115,11 +115,6 @@ if sqlite is not None: self.assertResponse('moo', 'foo') self.assertNotError('foo is bar _is_ baz') self.assertResponse('foo is bar', 'foo is bar is baz') - # Check the "see ..." referencing - self.assertNotError('bar is see moo') - self.assertResponse('bar', 'foo') - self.assertNotError('bar2 _is_ see foo is bar') - self.assertResponse('bar2', 'foo is bar is baz') def testFactinfo(self): self.assertNotError('moo is foo')