Skip to content

Commit

Permalink
[roles] fixed spelling error, smartmatch thinko
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed Dec 5, 2009
1 parent 7519c2f commit 9a50799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/roles.pod
Expand Up @@ -29,7 +29,7 @@ into a class at compile time or mixed in per-object at runtime.
return $<nick> ~ " has karma $karma";
}
else {
return $<nick> ~ " has neutrel karma";
return $<nick> ~ " has neutral karma";
}
}
multi method on-message($sender, $msg where /<nick> '++'/) {
Expand All @@ -43,12 +43,12 @@ into a class at compile time or mixed in per-object at runtime.
role OpBot {
has @!whoz-op;
multi method on-join($nick) {
if $nick ~~ @!whoz-op {
if $nick eq any(@!whoz-op) {
return "/mode +o $nick";
}
}
multi method on-message($sender, $msg where /^trust <ws> <nick>/) {
if $sender ~~ @!whoz-op {
if $sender eq any(@!whoz-op) {
push @!whoz-op, $<nick>;
return "I now trust " ~ $<nick>;
}
Expand Down

0 comments on commit 9a50799

Please sign in to comment.