Advertisement
Guest User

Untitled

a guest
Dec 10th, 2011
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. get '/' => sub {
  2. my $self = shift;
  3. $channel = channeld($self->param('channel'));
  4. $self->render('index', channel => $channel);
  5. };
  6. sub channeld {
  7. my ($channel) = @_;
  8. if (defined($channel)) {
  9. $channel = $channel;
  10. }else{
  11. $channel = '#maxson';
  12. }
  13. return $channel;
  14. }
  15. $irc->send_srv(JOIN => $channel);
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement