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