]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Dict.pl
- renamed Factoids/Misc.pl to Factoids/Core.pl
[infobot.git] / src / Modules / Dict.pl
index 3212b6262b2f2dc6e9f80dd90df4ff7b64ea4672..22b6422bca472c1c063706eb7e49e76b21047166 100644 (file)
@@ -43,7 +43,7 @@ sub Dict {
        $socket->autoflush(1);  # required.
 
        my $num;
-       if ($query =~ /^(\d+)\s+/) {
+       if ($query =~ s/^(\d+)\s+//) {
            $num = $1;
        }
 
@@ -58,7 +58,7 @@ sub Dict {
        my $total = scalar @results;
 
        if (defined $num and ($num > $total or $num < 1)) {
-           &msg($::who, "error: choice in definition is out of range.");
+           &::msg($::who, "error: choice in definition is out of range.");
            return;
        }