Updated test to reflect new msg.nick != irc.nick guard in doPrivmsg.

This commit is contained in:
Jeremy Fincher 2003-09-11 05:16:12 +00:00
parent 77ff4f8036
commit ec1e60bf00
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ class MiscCommandsTestCase(PluginTestCase, PluginDocumentation):
plugins = ('MiscCommands', 'Utilities')
def testReplyWhenNotCommand(self):
conf.replyWhenNotCommand = True
self.prefix = 'somethingElse!user@host.domain.tld'
self.irc.nick = 'foobarlkajdf'
self.assertRegexp('foo bar baz', 'not.*command')
self.assertRegexp('foo | bar | baz', 'not.*commands')
self.assertRegexp('baz [foo] [bar]', 'not.*commands')