Permalink
Browse files

fixed a typo and some other errors

  • Loading branch information...
1 parent 3d63497 commit be26070e875f1e6e8dbce254c67ad481eebcd9aa @yaxar committed Dec 11, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 hl.pl
View
@@ -19,7 +19,7 @@
};';
close FH;
}
-my $plugin = plugin Config => {file => 'config.conf', stash_key => 'conf'};
+my $config = plugin Config => {file => 'config.conf', stash_key => 'conf'};
my $channel = "#maxson";
my $nick = "guest$$";
my $user = "guest$$";
@@ -39,10 +39,10 @@ sub configr{
#my $config => {stash_key => 'conf'};
get '/' => sub {
my $self = shift;
- $self->config('nick') = $self->param('nick') || "guest$$";
- $self->config('user') = $self->param('user') || "guest$$";
- $self->config('real') = $self->param('real') || "guest$$";
- $self->config('channel') = $self->param('channel') || '#maxson';
+ $config->{'nick'} = $self->param('nick') || "guest$$";
+ $config->{'user'} = $self->param('user') || "guest$$";
+ $config->{'real'} = $self->param('real') || "guest$$";
+ $config->{'channel'} = $self->param('channel') || '#maxson';
$self->stash(nick => $self->config('nick'));
$self->stash(user => $self->config('user'));
$self->stash(real => $self->config('real'));
@@ -144,7 +144,7 @@ sub updatefile {
</script>
</head>
<body>
- <div id="content">Below is the current content of the chanel <%= $channel %></div>
+ <div id="content">Below is the current content of the channel <%= $channel %></div>
<p>You can change the any of the value's bellow.</p>
<form action="" type="POST">
Nick: <input type="text" name="nick" value="<%= $nick %>" /><br />
@@ -155,4 +155,4 @@ sub updatefile {
</form>
<div id="currentcontent"></div>
</body>
-</html>
+</html>

0 comments on commit be26070

Please sign in to comment.