set userinfo true
# [0/1] Uptime daemon
-set uptime true
+set Uptime true
# [0/1] Wingate checking and banning mechanism. FIXME:
###set wingate false
&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' ) );
}
if (/^uptime$/ and $i) {
- &loadMyModule('uptime');
+ &loadMyModule('Uptime');
delete $cache{confvars}{$_};
}
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();
my $file = $file{utm};
if ($$ != $bot_pid) {
- &FIXME("uptime: forked process doing weird things!");
+ &FIXME('uptime: forked process doing weird things!');
exit 0;
}
}
&writeUserFile();
&writeChanFile();
- &uptimeWriteFile() if (&IsChanConf("uptime"));
+ &uptimeWriteFile() if (&IsChanConf('Uptime'));
&sqlCloseDB();
&closeSHM($shm);
"DumpVars2" => "DumpVars2.pl",
"Topic" => "Topic.pl",
"Units" => "Units.pl",
- "uptime" => "Uptime.pl",
+ "Uptime" => "Uptime.pl",
"userinfo" => "UserInfo.pl",
"weather" => "Weather.pl",
"whatis" => "WhatIs.pl",
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');
}