Changeset 5070
- Timestamp:
- May 15, 2008, 12:50:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/Media/tcl/irk/lib/irkreceive.tcl
r5065 r5070 36 36 set rest [eval concat $rest] 37 37 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" 39 40 40 41 return "" … … 247 248 248 249 if {[isus $token $nick]} { 249 puts "You joined $dest" 250 # puts "You joined $dest" 251 orxonox::irc::info $token "You joined $dest" 250 252 251 253 addChannel $token $dest 252 254 } else { 253 puts "$nick joined $dest" 255 # puts "$nick joined $dest" 256 orxonox::irc::info $token "$nick joined $dest" 254 257 255 258 addToChannel $token $nick $dest … … 267 270 268 271 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]" 272 277 } 273 278 removeFromChannel $token $nick $chan … … 281 286 proc RECV,MODE {token nick user comm dest rest} { 282 287 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" 284 290 285 291 return "" … … 306 312 replaceAllChannels $token $nick $newnick 307 313 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" 309 316 310 317 return "" … … 317 324 318 325 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" 320 328 321 329 if {[string match ":*" $dest]} { … … 323 331 } 324 332 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)" 326 335 forgetConnection $token 327 336 } else { … … 342 351 [lindex $rest 0] [lrange $rest 1 end] 343 352 } else { 344 puts "$nick$dest: [eval concat $rest]" 353 # puts "$nick$dest: [eval concat $rest]" 354 orxonox::irc::say $token $nick [eval concat $rest] 345 355 } 346 356 … … 415 425 [lindex $rest 0] [lrange $rest 1 end] 416 426 } else { 417 puts "$nick: [eval concat $rest]" 427 # puts "$nick: [eval concat $rest]" 428 orxonox::irc::privmsg $nick $nick [eval concat $rest] 418 429 } 419 430 … … 452 463 453 464 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" 455 467 456 468 removeChannel $token $dest 457 469 } 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" 459 472 460 473 removeFromChannel $token $kicked $dest … … 570 583 571 584 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 573 587 574 588 return "" … … 597 611 598 612 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]" 600 615 601 616 return ""
Note: See TracChangeset
for help on using the changeset viewer.