Changeset 48f7d12 for perl/modules/IRC/lib/BarnOwl/Module
- Timestamp:
- Jun 5, 2009, 9:47:57 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- ac40fdf
- Parents:
- c00ab5f
- git-author:
- Edward Z. Yang <ezyang@mit.edu> (06/05/09 21:32:52)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (06/05/09 21:47:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
rc00ab5f r48f7d12 375 375 $conn->conn->disconnect; 376 376 delete $ircnets{$conn->alias}; 377 return; 377 378 } 378 379 … … 387 388 BarnOwl::start_edit_win("/msg -a " . $conn->alias . " $to", sub {process_msg($conn, $to, @_)}); 388 389 } 390 return; 389 391 } 390 392 … … 415 417 ); 416 418 BarnOwl::queue_message($msg); 419 return; 417 420 } 418 421 … … 423 426 $target ||= shift; 424 427 $conn->conn->mode($target, @_); 428 return; 425 429 } 426 430 … … 432 436 push @{$channels{$chan}}, $conn; 433 437 $conn->conn->join($chan, @_); 438 return; 434 439 } 435 440 … … 440 445 $channels{$chan} = [grep {$_ ne $conn} @{$channels{$chan} || []}]; 441 446 $conn->conn->part($chan); 447 return; 442 448 } 443 449 … … 447 453 my $nick = shift or die("Usage: $cmd <new nick>\n"); 448 454 $conn->conn->nick($nick); 455 return; 449 456 } 450 457 … … 455 462 $conn->names_tmp([]); 456 463 $conn->conn->names($chan); 464 return; 457 465 } 458 466 … … 462 470 my $who = shift || die("Usage: $cmd <user>\n"); 463 471 $conn->conn->whois($who); 472 return; 464 473 } 465 474 … … 468 477 my $conn = shift; 469 478 $conn->conn->motd; 479 return; 470 480 } 471 481 … … 477 487 } 478 488 BarnOwl::popless_ztext($message); 489 return; 479 490 } 480 491 … … 485 496 BarnOwl::error("WHO $cmd $conn $who"); 486 497 $conn->conn->who($who); 498 return; 487 499 } 488 500 … … 492 504 my $type = shift || die("Usage: $cmd <chiklmouy> [server] \n"); 493 505 $conn->conn->stats($type, @_); 506 return; 494 507 } 495 508 … … 499 512 my $chan = shift; 500 513 $conn->conn->topic($chan, @_ ? join(" ", @_) : undef); 514 return; 501 515 } 502 516 … … 505 519 my $conn = shift; 506 520 $conn->conn->sl(join(" ", @_)); 521 return; 507 522 } 508 523
Note: See TracChangeset
for help on using the changeset viewer.