Removed pi -> 3.14 capability.

This commit is contained in:
Jeremy Fincher 2003-10-11 03:37:38 +00:00
parent 5e3c5fc703
commit eb01a8e99d
2 changed files with 3 additions and 11 deletions

View File

@ -134,9 +134,6 @@ def makeNewAlias(name, alias):
if '$channel' in alias:
channel = privmsgs.getChannel(msg, args)
alias_ = alias_.replace('$channel', channel)
if not (biggestDollar or biggestAt or wildcard):
irc.reply(msg, alias_)
return
if not wildcard and biggestDollar or biggestAt:
args = privmsgs.getArgs(args, needed=biggestDollar,
optional=biggestAt)

View File

@ -73,11 +73,6 @@ class AliasTestCase(ChannelPluginTestCase, PluginDocumentation):
self.assertNotRegexp('syntax slashdot', 'None')
self.assertRegexp('help slashdot', "Alias for 'foo'")
def testSimpleAlias(self):
pi = '3.1456926535897932384626433832795028841971693'
self.assertNotError('alias pi %s' % pi)
self.assertResponse('pi', pi)
def testDollars(self):
self.assertNotError('alias rot26 "rot13 [rot13 $1]"')
self.assertResponse('rot26 foobar', 'foobar')
@ -112,16 +107,16 @@ class AliasTestCase(ChannelPluginTestCase, PluginDocumentation):
self.assertNoResponse('blah blah blah', 2)
def testChannel(self):
self.assertNotError('alias channel $channel')
self.assertNotError('alias channel echo $channel')
self.assertResponse('channel', self.channel)
def testNick(self):
self.assertNotError('alias sendingnick $nick')
self.assertNotError('alias sendingnick "echo $nick"')
self.assertResponse('sendingnick', self.nick)
def testAddRemoveAlias(self):
cb = self.irc.getCallback('Alias')
cb.addAlias(self.irc, 'foobar', 'sbbone', freeze=True)
cb.addAlias(self.irc, 'foobar', 'echo sbbone', freeze=True)
self.assertResponse('foobar', 'sbbone')
self.assertRaises(Alias.AliasError, cb.removeAlias, 'foobar')
cb.removeAlias('foobar', evenIfFrozen=True)