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))): if m and self.isCommand(canonicalName(m.group(1))):
self.rateLimiter.put(msg) self.rateLimiter.put(msg)
msg = self.rateLimiter.get() msg = self.rateLimiter.get()
args = tokenize(s) if msg:
self.Proxy(irc, msg, args) args = tokenize(s)
self.Proxy(irc, msg, args)
class IrcObjectProxyRegexp: class IrcObjectProxyRegexp: