Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/IRC/lib/BarnOwl/Module/IRC.pm

    rf094fc4 r167044b  
    117117    BarnOwl::new_command('irc-who'        => \&cmd_who);
    118118    BarnOwl::new_command('irc-stats'      => \&cmd_stats);
    119 }
    120 
    121 $BarnOwl::Hooks::startup->add(\&startup);
    122 $BarnOwl::Hooks::shutdown->add(\&shutdown);
    123 #$BarnOwl::Hooks::mainLoop->add(\&mainloop_hook);
     119    BarnOwl::new_command('irc-topic'      => \&cmd_topic);
     120}
     121
     122$BarnOwl::Hooks::startup->add('BarnOwl::Module::IRC::startup');
     123$BarnOwl::Hooks::shutdown->add('BarnOwl::Module::IRC::shutdown');
    124124
    125125################################################################################
     
    262262    my $conn = get_connection(\@_);
    263263    my $chan = get_channel(\@_) || die("Usage: $cmd <channel>\n");
     264    $conn->names_tmp([]);
    264265    $conn->conn->names($chan);
    265266}
     
    299300    my $type = shift || die("Usage: $cmd <chiklmouy> [server] \n");
    300301    $conn->conn->stats($type, @_);
     302}
     303
     304sub cmd_topic {
     305    my $cmd = shift;
     306    my $conn = get_connection(\@_);
     307    $conn->conn->topic(@_);
    301308}
    302309
Note: See TracChangeset for help on using the changeset viewer.