示例#1
0
文件: Ack.py 项目: ArildF/rogie
 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
示例#2
0
文件: Ack.py 项目: ArildF/rogie
    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
示例#3
0
文件: Ack.py 项目: ArildF/rogie
    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 )