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))
Exemple #2
0
 def f(L):
     return ircmsgs.devoices(channel, L)
Exemple #3
0
 def testDevoices(self):
     m = ircmsgs.devoices('#foo', ['foo', 'bar', 'baz'])
     self.assertEqual(str(m), 'MODE #foo -vvv foo bar :baz\r\n')
Exemple #4
0
		def f(L):
			return ircmsgs.devoices(self.channel, L)
Exemple #5
0
 def testDevoices(self):
     m = ircmsgs.devoices('#foo', ['foo', 'bar', 'baz'])
     self.assertEqual(str(m), 'MODE #foo -vvv foo bar :baz\r\n')