Skip to content

Commit

Permalink
Default nickname to $nick
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Haggai Alavi committed Dec 12, 2011
1 parent c539d04 commit 4c744dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.pl
Expand Up @@ -14,7 +14,7 @@
my $server = 'irc.perl.org';
get '/' => sub {
my $self = shift;
$nick = $self->param('nick') || "guest$$";
$nick = $self->param('nick') || $nick;
$channel = $self->param('channel') || $channel;
$self->stash(nick => $nick);
$self->render('index', channel =>$channel);
Expand Down

0 comments on commit 4c744dd

Please sign in to comment.