mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Seen: fix tests so they pass. fix seen command so it properly accepts nick wildcards.
This commit is contained in:
parent
da5b2b35e2
commit
1b74b8ddf6
@ -219,10 +219,10 @@ class Seen(callbacks.Plugin):
|
|||||||
|
|
||||||
Returns the last time <nick> was seen and what <nick> was last seen
|
Returns the last time <nick> was seen and what <nick> was last seen
|
||||||
saying. <channel> is only necessary if the message isn't sent on the
|
saying. <channel> is only necessary if the message isn't sent on the
|
||||||
channel itself.
|
channel itself. <nick> may contain * as a wildcard.
|
||||||
"""
|
"""
|
||||||
self._seen(irc, channel, name)
|
self._seen(irc, channel, name)
|
||||||
seen = wrap(seen, ['channel', 'nick'])
|
seen = wrap(seen, ['channel', 'something'])
|
||||||
|
|
||||||
def any(self, irc, msg, args, channel, optlist, name):
|
def any(self, irc, msg, args, channel, optlist, name):
|
||||||
"""[<channel>] [--user <name>] [<nick>]
|
"""[<channel>] [--user <name>] [<nick>]
|
||||||
|
@ -50,7 +50,7 @@ class ChannelDBTestCase(ChannelPluginTestCase):
|
|||||||
self.assertNotRegexp('seen asldfkjasdlfkj', 'KeyError')
|
self.assertNotRegexp('seen asldfkjasdlfkj', 'KeyError')
|
||||||
|
|
||||||
def testAny(self):
|
def testAny(self):
|
||||||
self.assertRegexp('seen any', 'test has joined')
|
self.assertRegexp('seen any', 'test <test!user@host.domain.tld> has joined')
|
||||||
self.irc.feedMsg(ircmsgs.mode(self.channel, args=('+o', self.nick),
|
self.irc.feedMsg(ircmsgs.mode(self.channel, args=('+o', self.nick),
|
||||||
prefix=self.prefix))
|
prefix=self.prefix))
|
||||||
self.assertRegexp('seen any %s' % self.nick,
|
self.assertRegexp('seen any %s' % self.nick,
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
"""stick the various versioning attributes in here, so we only have to change
|
"""stick the various versioning attributes in here, so we only have to change
|
||||||
them once."""
|
them once."""
|
||||||
version = '0.83.4.1+gribble (2011-03-13T14:21:46-0400)'
|
version = '0.83.4.1+gribble (2011-04-04T16:30:52-0400)'
|
||||||
|
Loading…
Reference in New Issue
Block a user