]> git.donarmstrong.com Git - infobot.git/commitdiff
uptime -> Uptime
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 23 Nov 2004 05:49:10 +0000 (05:49 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 23 Nov 2004 05:49:10 +0000 (05:49 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1070 c11ca15a-4712-0410-83d8-924469b57eb5

files/sample/blootbot.config
src/CommandStubs.pl
src/DynaConfig.pl
src/IRC/Schedulers.pl
src/Modules/Uptime.pl
src/core.pl
src/modules.pl

index 014402349326c6b2aeb04c7096e0644885b834c9..4a5234ff87e7b829fa26912ca7b607d2007d9332 100644 (file)
@@ -256,7 +256,7 @@ set Topic           true
 set userinfo           true
 
 # [0/1] Uptime daemon
-set uptime             true
+set Uptime             true
 
 # [0/1] Wingate checking and banning mechanism. FIXME:
 ###set wingate         false
index d23c2852517c7a586c2e25e9aca697fffaa2e1e1..7bf0fce0a933f5fdcca28192870a2e3a53967f21 100644 (file)
@@ -220,7 +220,7 @@ sub parseCmdHook {
 &addCmdHook("extra", 'Plug', ('CODEREF' => 'Plug::Plug',
        'Identifier' => 'Plug', 'Forker' => 1,
        'Cmdstats' => 'Plug') );
-&addCmdHook("extra", 'uptime', ('CODEREF' => 'uptime', 'Identifier' => 'uptime',
+&addCmdHook("extra", 'Uptime', ('CODEREF' => 'uptime', 'Identifier' => 'Uptime',
        'Cmdstats' => 'Uptime') );
 &addCmdHook("extra", 'nullski', ('CODEREF' => 'nullski', ) );
 &addCmdHook("extra", 'verstats', ('CODEREF' => 'do_verstats' ) );
index dc710d4babcea63cbeb698049d8b4a566992d961..0e53f1187d41620cb31eabaf9253e3658062dbfa 100644 (file)
@@ -811,7 +811,7 @@ sub rehashConfVars {
        }
 
        if (/^uptime$/ and $i) {
-           &loadMyModule('uptime');
+           &loadMyModule('Uptime');
            delete $cache{confvars}{$_};
        }
 
index 5ec9b53c1d99117392da1bc30b8a0426a1694f2c..26df088c51c6bc6f8347a587ac7dbc385be6e8b4 100644 (file)
@@ -843,11 +843,11 @@ sub getNickInUse {
 
 sub uptimeLoop {
     return if (!defined &uptimeWriteFile);
-#    return unless &IsChanConf("uptime");
+#    return unless &IsChanConf('Uptime');
 
     if (@_) {
-       &ScheduleThis(60, "uptimeLoop");
-       return if ($_[0] eq "2");       # defer.
+       &ScheduleThis(60, 'uptimeLoop');
+       return if ($_[0] eq '2');       # defer.
     }
 
     &uptimeWriteFile();
index 983cc0c92018f633259a1a5c244e1218d8dbd22e..ac962f0d03fc2ca0513de9b47a6deb6575c49f12 100644 (file)
@@ -69,7 +69,7 @@ sub uptimeWriteFile {
   my $file = $file{utm};
 
   if ($$ != $bot_pid) {
-    &FIXME("uptime: forked process doing weird things!");
+    &FIXME('uptime: forked process doing weird things!');
     exit 0;
   }
 
index 909ff37a1e78e5be732a747009a2e5604ed5ff3e..e86f2273cc8c89b78fd90020875828fbb64d3312 100644 (file)
@@ -127,7 +127,7 @@ sub doExit {
        }
        &writeUserFile();
        &writeChanFile();
-       &uptimeWriteFile()      if (&IsChanConf("uptime"));
+       &uptimeWriteFile()      if (&IsChanConf('Uptime'));
        &sqlCloseDB();
        &closeSHM($shm);
 
index da983f8dabf15f70e371fd3da5b69e4d915d7166..e39116b16263a4a4f61e837518aa5260be8a3140 100644 (file)
@@ -49,7 +49,7 @@ if ($@) {
        "DumpVars2"     => "DumpVars2.pl",
        "Topic"         => "Topic.pl",
        "Units"         => "Units.pl",
-       "uptime"        => "Uptime.pl",
+       "Uptime"        => "Uptime.pl",
        "userinfo"      => "UserInfo.pl",
        "weather"       => "Weather.pl",
        "whatis"        => "WhatIs.pl",
@@ -64,7 +64,7 @@ if ($@) {
 my @myModulesLoadNow;
 my @myModulesReloadNot;
 BEGIN {
-    @myModulesLoadNow  = ('Topic', 'uptime', 'News', 'RootWarn', 'DumpVars2', 'botmail');
+    @myModulesLoadNow  = ('Topic', 'Uptime', 'News', 'RootWarn', 'DumpVars2', 'botmail');
     @myModulesReloadNot        = ('IRC/Irc.pl','IRC/Schedulers.pl');
 }