diff --git a/protocols/clientbot.py b/protocols/clientbot.py index d3c56a1..bf882d1 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -200,8 +200,9 @@ class ClientbotWrapperProtocol(Protocol): extmodes.append(modepair) log.debug('(%s) mode: filtered modes for %s: %s', self.irc.name, channel, extmodes) - self.irc.send('MODE %s %s' % (channel, self.irc.joinModes(extmodes))) - # Don't update the state here: the IRCd sill respond with a MODE reply if successful. + if extmodes: + self.irc.send('MODE %s %s' % (channel, self.irc.joinModes(extmodes))) + # Don't update the state here: the IRCd sill respond with a MODE reply if successful. def nick(self, source, newnick): """STUB: Sends NICK changes."""