Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.33 KB | None | 0 0
  1. sub connected {
  2.     my @channels = ('#nechku');
  3.    
  4.     #if debug, enable debug mode
  5.     if ($global->{ 'debug_mode' }) {   
  6.         push(@channels, '#nechkudebug');
  7.     } else {
  8.         push(@channels, $global->{ 'channel' });
  9.     }
  10.    
  11.     #Join channels
  12.     foreach my $channels (@channels) {
  13.         $irc->yield(join => $channels);
  14.         print "Joining " . $channels . "\n";
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement