Some additions (away, unaway and whisper without new window
Status: Beta
Brought to you by:
zmic
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)