def devoiceall(self, irc, msg, args, channel): """[<channel>] Devoices everyone in the channel. <channel> is only necessary if the message isn't sent in the channel itself. """ chanstate = irc.state.channels[channel] users = [user for user in chanstate.users if chanstate.isVoice(user)] for batch in self._split_modes(users): irc.queueMsg(ircmsgs.devoices(channel, batch))
def f(L): return ircmsgs.devoices(channel, L)
def testDevoices(self): m = ircmsgs.devoices('#foo', ['foo', 'bar', 'baz']) self.assertEqual(str(m), 'MODE #foo -vvv foo bar :baz\r\n')
def f(L): return ircmsgs.devoices(self.channel, L)