ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/NPC_Dialogue.pm
(Generate patch)

Comparing deliantra/server/ext/NPC_Dialogue.pm (file contents):
Revision 1.2 by elmex, Thu Jan 4 15:20:11 2007 UTC vs.
Revision 1.3 by elmex, Wed Apr 4 11:45:16 2007 UTC

196 my $lcmsg = lc $msg; 196 my $lcmsg = lc $msg;
197 197
198 topic: 198 topic:
199 for my $match (@{ $self->{match} }) { 199 for my $match (@{ $self->{match} }) {
200 for (split /\|/, $match->[0]) { 200 for (split /\|/, $match->[0]) {
201 if ($_ eq "*" || $lcmsg eq lc) { 201 if ($_ eq "*" || $lcmsg =~ /\b\Q$_\E\b/i) {
202 my $reply = $match->[1]; 202 my $reply = $match->[1];
203 my @kw; 203 my @kw;
204 204
205 my @replies; 205 my @replies;
206 my @match; # @match/@parse command results 206 my @match; # @match/@parse command results

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines