Menu

#1 Some additions (away, unaway and whisper without new window

open
nobody
5
2003-05-21
2003-05-21
Anonymous
No

Please add the following:

To set the user as away:

def away (self, channel):
s = "AWAY %%%s\x01\r\n" % (channel)
self.socket.send (s)

To set the user back as unaway:

def unaway (self, channel):
s = "AWAY\x0d\x0a %%%s\x01\r\n" % (channel)
self.socket.send (s)

To whisper in the room, not in a separate window:

def whisperinroom (self, nick, message, font = '\x01S
\x0b\x02Verdana'):
# PRIVMSG __zmic__ :\x01S \x0b\x03Tahoma;0
hallo sweetie\x01\r\n
if not font:
font = self.font
s = "PRIVMSG %s :%s %s\x01\r\n" % (nick, font,
message)
self.socket.send (s)

Discussion


Log in to post a comment.