Browse files

Default to `$channel`

  • Loading branch information...
1 parent 79feb14 commit c539d04e74b245d8b624d2a97514d76a2ba9e690 Alan Haggai Alavi committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 log.pl
View
2 log.pl
@@ -15,7 +15,7 @@
get '/' => sub {
my $self = shift;
$nick = $self->param('nick') || "guest$$";
- $channel = $self->param('channel') || '#mojo';
+ $channel = $self->param('channel') || $channel;
$self->stash(nick => $nick);
$self->render('index', channel =>$channel);
$irc->send_srv(NICK => $nick);

0 comments on commit c539d04

Please sign in to comment.