]> git.donarmstrong.com Git - infobot.git/commitdiff
userinfo had wrong argument # set
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 1 Aug 2000 13:41:20 +0000 (13:41 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 1 Aug 2000 13:41:20 +0000 (13:41 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@24 c11ca15a-4712-0410-83d8-924469b57eb5

src/CommandStubs.pl

index ed35aa22217dc74355d1e27fbe5fbf35fc1e9043..60b8ec237d97020cbfac23c32259c0f60a262557 100644 (file)
@@ -540,13 +540,13 @@ sub Modules {
     }
 
     # User Information Services. requested by Flugh.
-    if ($message =~ /^uinfo(\s+(.*))?$/i) {
+    if ($message =~ /^u(ser)?info(\s+(.*))?$/i) {
        return $noreply unless (&hasParam("userinfo"));
        &loadMyModule($myModules{'userinfo'});
 
-       my $arg = $1;
+       my $arg = $3;
        if (!defined $arg or $arg eq "") {
-           &help("uinfo");
+           &help("userinfo");
            return $noreply;
        }