Changeset 427

Show
Ignore:
Timestamp:
03/28/08 19:24:44 (8 months ago)
Author:
eevee
Message:

Changed Perlbui to use a hashref of channels rather than an arrayref, so I can provide settings later.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/script/perlbui.pl

    r262 r427  
    2626# XXX: only one supported at a time right now 
    2727my %Connections = ( 
    28     'irc.veekun.com' => [ '#veekun' ], 
     28    'irc.veekun.com' => { 
     29        '#veekun' => {}, 
     30        '#tcod'   => {}, 
     31    }, 
    2932#    'irc.pocketmonsters.net' => [ '#bulbagarden' ], 
    3033); 
     
    102105    REPLACEME("Successfully connected to " . $self->server); 
    103106 
    104     for my $channel (@{$Connections{ $self->server }}) { 
     107    for my $channel (keys %{$Connections{ $self->server }}) { 
    105108        REPLACEME("Joining $channel"); 
    106109        $self->join($channel);