From a421cbcd54a70346093e9837e2f4287c75d397af Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 30 Jul 2004 23:49:44 +0000 Subject: [PATCH] No need to tag or's since you can't escape the | --- plugins/Infobot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/Infobot.py b/plugins/Infobot.py index 821f44b8f..86a9a7391 100755 --- a/plugins/Infobot.py +++ b/plugins/Infobot.py @@ -224,8 +224,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp): self.dunno(irc=irc, msg=msg) else: # XXX - if value.startswith(''): - value = random.choice(value[4:].split('|')) + value = random.choice(value.split('|')) if value.startswith(''): self.reply('%s' % value[7:].strip(), irc=irc, msg=msg) elif value.startswith(''): @@ -322,8 +321,6 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp): isAre = isAre.lower() key = plugins.standardSubstitute(irc, msg, key) value = plugins.standardSubstitute(irc, msg, value) - if '|' in value: - value = '%s' % value if isAre in ('was', 'is', 'am'): if self.db.hasIs(key): if also: