Sorasyn commented on a Page, Simple Python IRC bot.  -  Nov 15, 2012

Also, if you're going to share a snippet with the public, make sure to twice over your code and make sure that it's flexible enough to work for everyone not just yourself.

    def Op(to_op):
        irc.send( 'MODE #berend +o: ' + to_op + '\r\n')

    def DeOp(to_deop):
        irc.send( 'MODE #berend -o: ' + to_deop + '\r\n')

    def Voice(to_v):
        irc.send( 'MODE #berend +v: ' + to_v + '\r\n')

    def DeVoice(to_dv):
        irc.send( 'MODE #berend -v: ' + to_dv + '\r\n')
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.