Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5070


Ignore:
Timestamp:
May 15, 2008, 12:50:25 AM (17 years ago)
Author:
landauf
Message:

changed some parts of the irc-library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/Media/tcl/irk/lib/irkreceive.tcl

    r5065 r5070  
    3636        set rest [eval concat $rest]
    3737        append state($token,ERRORS) "$nick $dest $rest\n"
    38         puts "Got ERROR: $token $nick ---> $dest: $rest"
     38#       puts "Got ERROR: $token $nick ---> $dest: $rest"
     39        orxonox::execute error "Got ERROR: $token $nick ---> $dest: $rest"
    3940
    4041        return ""
     
    247248
    248249        if {[isus $token $nick]} {
    249             puts "You joined $dest"
     250#           puts "You joined $dest"
     251          orxonox::irc::info $token "You joined $dest"
    250252
    251253            addChannel $token $dest
    252254        } else {
    253             puts "$nick joined $dest"
     255#           puts "$nick joined $dest"
     256          orxonox::irc::info $token "$nick joined $dest"
    254257
    255258            addToChannel $token $nick $dest
     
    267270
    268271        if {[isus $token $nick]} {
    269             puts "You left channel $chan"
    270         } else {
    271             puts "$nick left [string tolower $dest]"
     272#           puts "You left channel $chan"
     273          orxonox::irc::info $token "You left channel $chan"
     274        } else {
     275#           puts "$nick left [string tolower $dest]"
     276          orxonox::irc::info $token "$nick left [string tolower $dest]"
    272277        }           
    273278        removeFromChannel $token $nick $chan
     
    281286    proc RECV,MODE {token nick user comm dest rest} {
    282287        set rest [eval concat $rest]
    283         puts "$nick sets mode $dest $rest"
     288#       puts "$nick sets mode $dest $rest"
     289      orxonox::irc::info "$nick $token sets mode $dest $rest"
    284290
    285291        return ""
     
    306312        replaceAllChannels $token $nick $newnick
    307313
    308         puts "$nick ${user} ($token) changes his/her nickname to $newnick"
     314#       puts "$nick ${user} ($token) changes his/her nickname to $newnick"
     315      orxonox::irc::info $token "$nick changes his/her nickname to $newnick"
    309316
    310317        return ""
     
    317324
    318325        set rest [eval concat $rest]
    319         puts "Received QUIT $token $nick $rest"
     326#       puts "Received QUIT $token $nick $rest"
     327      orxonox::irc::info $token "Received QUIT $token $nick $rest"
    320328
    321329        if {[string match ":*" $dest]} {
     
    323331        }
    324332        if {[isus $token $nick]} {
    325             puts "You left the server $state($token,host) ($dest $rest)"
     333#           puts "You left the server $state($token,host) ($dest $rest)"
     334          orxonox::irc::info $token "You left the server $state($token,host) ($dest $rest)"
    326335            forgetConnection $token
    327336        } else {
     
    342351                    [lindex $rest 0] [lrange $rest 1 end]
    343352        } else {
    344             puts "$nick$dest: [eval concat $rest]"
     353#           puts "$nick$dest: [eval concat $rest]"
     354          orxonox::irc::say $token $nick [eval concat $rest]
    345355        }
    346356
     
    415425                    [lindex $rest 0] [lrange $rest 1 end]
    416426        } else {
    417             puts "$nick: [eval concat $rest]"
     427#           puts "$nick: [eval concat $rest]"
     428          orxonox::irc::privmsg $nick $nick [eval concat $rest]
    418429        }
    419430
     
    452463
    453464        if {[isus $token $kicked]} {
    454             puts "$nick kicked you from $dest because $reason"
     465#           puts "$nick kicked you from $dest because $reason"
     466          orxonox::irc::info $token "$nick kicked you from $dest because $reason"
    455467
    456468            removeChannel $token $dest
    457469        } else {
    458             puts "$nick kicks $kicked from $dest because $reason"
     470#           puts "$nick kicks $kicked from $dest because $reason"
     471          orxonox::irc::info $token "$nick kicks $kicked from $dest because $reason"
    459472
    460473            removeFromChannel $token $kicked $dest
     
    570583
    571584    proc RECV,CTCP,ACTION {token nick user comm dest action rest} {
    572         puts "$nick $rest"
     585#       puts "$nick $rest"
     586      orxonox::irc::action $token $nick $rest
    573587
    574588        return ""
     
    597611
    598612    proc defaultAction {token nick user comm dest rest} {
    599         puts "$token: $nick $user: $comm -> $dest ... [eval concat $rest]"
     613#       puts "$token: $nick $user: $comm -> $dest ... [eval concat $rest]"
     614      orxonox::execute log "$token: $nick $user: $comm -> $dest ... [eval concat $rest]"
    600615
    601616        return ""
Note: See TracChangeset for help on using the changeset viewer.