def dispatch( self ): try: line = self.stripLine( self[PMLINE] ) nick = self[PMNICK] self.display.userPm( nick, line ) dispatch.execute( self.sock, nick, self.room, line, 1 ) except KeyError, err: print err
def dispatch( self ): try: line = self.stripLine( self[SPEECHLINE] ) nick = self[NICK] dispatch.execute( self.sock, nick, self.room, line ) self.display.userSpeech( nick, line ) except KeyError, er: print er
def dispatch( self ): #decode the packet items = string.split( self.msg, Packet.DELIMITER2 ) if len( items ) > 2: nick = items[ 0 ] rawstatement = items[ 2 ] #strip off garbage line = self.stripLine( rawstatement ) self.events.userPm( nick, line ) dispatch.execute( self.sock, nick, self.room, line, 1 )