--- deliantra/server/ext/NPC_Dialogue.pm 2007/01/04 15:20:11 1.2 +++ deliantra/server/ext/NPC_Dialogue.pm 2007/06/16 23:22:59 1.5 @@ -6,6 +6,8 @@ NPC dialogue support module. +=over 4 + =cut package NPC_Dialogue; @@ -28,6 +30,8 @@ sub new { my ($class, %arg) = @_; + $arg{ob} = $arg{pl}->ob; + my $self = bless { %arg, }, $class; @@ -198,7 +202,7 @@ topic: for my $match (@{ $self->{match} }) { for (split /\|/, $match->[0]) { - if ($_ eq "*" || $lcmsg eq lc) { + if ($_ eq "*" || $lcmsg =~ /\b\Q$_\E\b/i) { my $reply = $match->[1]; my @kw;