]> git.donarmstrong.com Git - infobot.git/blobdiff - blootbot/src/UserExtra.pl
initial weather fixes, needs to use Geo::METAR before it works
[infobot.git] / blootbot / src / UserExtra.pl
index 105c22ef99f64df04e41961e6d6b1976b723f29e..2e2dc643fa8ffd1229e9a4e0aee1e23e89fdb99b 100644 (file)
@@ -443,7 +443,7 @@ sub countryStats {
        return;
     }
 
-    &rawout("WHO $chan");
+    $conn->who($chan);
     $cache{countryStats}{chan} = $chan;
     $cache{countryStats}{mtype}        = $msgType;
     $cache{countryStats}{who}  = $who;
@@ -611,6 +611,17 @@ sub userCommands {
        return;
     }
 
+    # reload.
+    if ($message =~ /^reload$/i) {
+       return unless (&hasFlag("n"));
+
+       &status("USER reload $who");
+       &pSReply("reloading...");
+       &reloadAllModules();
+       &pSReply("reloaded.");
+       return;
+    }
+
     # redir.
     if ($message =~ /^redir(\s+(.*))?/i) {
        return unless (&hasFlag("o"));