diff --git a/plugins/NickAuth/plugin.py b/plugins/NickAuth/plugin.py index fcccd41e1..5d3c0303a 100644 --- a/plugins/NickAuth/plugin.py +++ b/plugins/NickAuth/plugin.py @@ -72,11 +72,10 @@ def _check_auth(self, irc, msg, user): @internationalizeDocstring def add(self, irc, msg, args, network, user, nick): - """[] [] + """[] Add to the list of network services accounts owned by - on . is only required if you - are not already logged in to Limnoria. + on . defaults to the current network. """ network = network.network or irc.network @@ -89,7 +88,7 @@ def add(self, irc, msg, args, network, user, nick): 'on this network.'), Raise=True) irc.replySuccess() add = wrap(add, [optional('networkIrc'), - optional('otherUser'), + 'otherUser', 'nick']) @internationalizeDocstring diff --git a/plugins/NickAuth/test.py b/plugins/NickAuth/test.py index d2cb2b26a..f871437da 100644 --- a/plugins/NickAuth/test.py +++ b/plugins/NickAuth/test.py @@ -129,15 +129,13 @@ def testBotJoin(self): def testList(self): self.assertNotError('register foobar 123') self.assertRegexp('nick list', 'You have no recognized services accounts') - self.assertNotError('nick add foo') + self.assertNotError('nick add foobar foo') self.assertRegexp('nick list', 'foo') - self.assertNotError('nick add %s bar' % self.nick) + self.assertNotError('nick add %s foobar bar' % self.irc.network) self.assertRegexp('nick list', 'foo and bar') - self.assertNotError('nick add %s %s baz' % (self.irc.network, self.nick)) - self.assertRegexp('nick list', 'foo, bar, and baz') - self.assertRegexp('nick list %s' % self.irc.network, 'foo, bar, and baz') + self.assertRegexp('nick list %s' % self.irc.network, 'foo and bar') self.assertRegexp('nick list %s foobar' % self.irc.network, - 'foo, bar, and baz') + 'foo and bar') # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: