Made sure it doesn't relay CTCP messages.

This commit is contained in:
Jeremy Fincher 2003-12-10 18:50:35 +00:00
parent 3f6d347e2b
commit b7fbaedcad

View File

@ -515,7 +515,7 @@ class Relay(callbacks.Privmsg, configurable.Mixin):
irc = irc.getRealIrc() irc = irc.getRealIrc()
if self.started and ircutils.isChannel(msg.args[0]): if self.started and ircutils.isChannel(msg.args[0]):
channel = msg.args[0] channel = msg.args[0]
if channel not in self.channels: if channel not in self.channels or ircutils.isCtcp(msg):
return return
abbreviation = self.abbreviations[irc] abbreviation = self.abbreviations[irc]
s = self._formatPrivmsg(msg.nick, abbreviation, msg) s = self._formatPrivmsg(msg.nick, abbreviation, msg)