Added check for rateLimiting in Privmsg.doPrivmsg (didn't check before)

This commit is contained in:
Jeremy Fincher 2003-04-06 12:23:35 +00:00
parent 66236e1f34
commit 7d2a096e7a

View File

@ -368,8 +368,9 @@ class Privmsg(irclib.IrcCallback):
if m and self.isCommand(canonicalName(m.group(1))):
self.rateLimiter.put(msg)
msg = self.rateLimiter.get()
args = tokenize(s)
self.Proxy(irc, msg, args)
if msg:
args = tokenize(s)
self.Proxy(irc, msg, args)
class IrcObjectProxyRegexp: