]> git.donarmstrong.com Git - infobot.git/commitdiff
standard TODO: and FIXME:
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 14 Nov 2003 04:19:25 +0000 (04:19 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 14 Nov 2003 04:19:25 +0000 (04:19 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@890 c11ca15a-4712-0410-83d8-924469b57eb5

25 files changed:
blootbot
files/blootbot.help
files/sample/blootbot.config
src/CommandStubs.pl
src/DynaConfig.pl
src/Factoids/Core.pl
src/Factoids/Norm.pl
src/Factoids/Question.pl
src/Factoids/Reply.pl
src/Factoids/Update.pl
src/IRC/IrcHelpers.pl
src/IRC/IrcHooks.pl
src/IRC/Schedulers.pl
src/Modules/Debian.pl
src/Modules/Dict.pl
src/Modules/Factoids.pl
src/Modules/News.pl
src/Modules/RootWarn.pl
src/Modules/UserDCC.pl
src/Modules/babel.pl
src/Net.pl
src/Process.pl
src/UserExtra.pl
src/logger.pl
src/modules.pl

index 323c12258666972ed11be3e63357591cd4cdc158..4ef62d5f1dfe4128bc441c6516c857cc773ca5d8 100755 (executable)
--- a/blootbot
+++ b/blootbot
@@ -62,9 +62,7 @@ exit 0;  # just so you don't look farther down in this file :)
 
 # --- support routines
 
-# FIXME.
-#   add arguments, basically '-h' and '--help', heh.
-#
+# FIXME: add arguments, basically '-h' and '--help', heh.
 
 # added by the xk
 sub duperuncheck {
index 5004e544ed4a339b7c9f03a41ce5f3d996934cc2..7f7e8869fa98c04306fc5bd31bea3c0b96d7e484 100644 (file)
@@ -56,12 +56,12 @@ babelfish: U: x <fromLang> <toLang> <words>
 babelfish: U: translate <fromLang> <toLang> <words>
 babelfish: E: x en de your cars rock
 
--ban: D: FIXME.
+-ban: D: FIXME:
 -ban: U: ## <mask|user>
 -ban: E: ## *!*@owns.org
 -ban: E: ## MoronMan
 
-+ban: D: FIXME.
++ban: D: FIXME:
 +ban: U: ## <mask|user> [chan] [time] [reason]
 +ban: E: ## *!*@owns.org #bots 60 stop flooding.
 +ban: E: ## *!*@*microsoft.com STOOPID
@@ -195,7 +195,7 @@ httpdtype: D: Get httpd server software version / configuration
 httpdtype: U: ## <hostname>
 httpdtype: E: ## example.com
 
-ignore: D: FIXME
+ignore: D: FIXME:
 ignore: E: ## [mask chan expire comment]
 
 ircstats: ircstats dumps some status information on the bot's IRC connection
@@ -390,12 +390,12 @@ uptime: U: ##
 
 wantnick: If someone's taken my nick (I hope not) and I'm using some temporary nick, I can change back to my original nick if it's not taken (again).
 
--host: D: FIXME.
+-host: D: FIXME:
 -host: U: ## [user] <mask>
 -host: E: ## *!*@owns.org
 -host: E: ## owner leet!leet@*.heh.org
 
-+host: D: FIXME.
++host: D: FIXME:
 +host: U: ## [user] <mask>
 +host: E: ## *!*@owns.org
 +host: E: ## owner leet!leet@*.heh.org
index 8bd295379ac1e0897826ac16d73a34f200a301b6..b140dffd8da6d32e937c2e724563f0c1d6bbb2a3 100644 (file)
@@ -121,7 +121,7 @@ set allowTelling    1
 # Factoid related and unrelated features, mainly Extras.
 #####
 
-# [str] addressing is when you name the bot. FIXME
+# [str] addressing is when you name the bot. FIXME:
 #   REQUIRE    -- the bot only does something if addressed.
 #   OPTIONAL   -- the bot responds (does not learn) irrelevent of
 #                 addressing.
@@ -275,7 +275,7 @@ set userinfo                true
 # [0/1] Uptime daemon
 set uptime             true
 
-# [0/1] Wingate checking and banning mechanism. FIXME.
+# [0/1] Wingate checking and banning mechanism. FIXME:
 ###set wingate         false
 # [int] seconds. minimum time to check.
 set wingateInterval    60
index 7da444ec790176150a434ec4afa892d43285a9a2..a2f00ef6ba689718618a85cb7d7b931241c43fbf 100644 (file)
@@ -3,7 +3,8 @@
 # WARN: this file does not reload on HUP.
 #
 
-# use strict;  # TODO
+# TODO:
+# use strict;
 
 use vars qw($who $msgType $conn $chan $message $ident $talkchannel
        $bot_version $babel_lang_regex $bot_data_dir);
@@ -850,7 +851,7 @@ sub do_text_counters {
     if (!defined $arg or $arg =~ /^\s*$/) {
        # this is way fucking ugly.
 
-       # TODO convert $where to hash
+       # TODO: convert $where to hash
        my %hash = &sqlSelectColHash("stats", "nick,counter",
                        { },
                        $where." ORDER BY counter DESC LIMIT 3", 1
@@ -878,7 +879,7 @@ sub do_text_counters {
            &pSReply("zero counter for \037$type\037.");
        }
     } else {
-       # TODO convert $where to hash and use a sqlSelect
+       # TODO: convert $where to hash and use a sqlSelect
        my $x = (&sqlRawReturn("SELECT SUM(counter) FROM stats".
                        " WHERE $where AND nick=".&sqlQuote($arg) ))[0];
 
@@ -888,7 +889,7 @@ sub do_text_counters {
        }
 
        # defined.
-       # TODO convert $where to hash
+       # TODO: convert $where to hash
        my @array = &sqlSelect("stats", "nick", undef,
                        $where." ORDER BY counter", 1
        );
@@ -962,7 +963,7 @@ sub textstats_main {
        return;
     }
 
-    # TODO add nick to where_href
+    # TODO: add nick to where_href
     my %hash = &sqlSelectColHash("stats", "type,counter",
                $where_href, " AND nick=".&sqlQuote($arg)
     );
@@ -975,7 +976,7 @@ sub textstats_main {
     foreach (keys %hash) {
        &DEBUG("_stats: hash{$_} => $hash{$_}");
        # ranking.
-       # TODO convert $where to hash
+       # TODO: convert $where to hash
        my @array = &sqlSelect("stats", "nick", undef,
                $where." ORDER BY counter", 1);
        $good = 0;
index f6f066668079f9d578ec046471de5dc29faf9a0f..6b4ee5aa6f16bd0bd9eaf3cecc631d545648c95c 100644 (file)
@@ -443,7 +443,7 @@ sub writeChanFile {
 ##### USER COMMANDS.
 #####
 
-# todo: support multiple flags, eg: "+o-m"
+# TODO: support multiple flags, eg: "+o-m"
 sub IsFlag {
     my $flags = shift;
     my ($ret, $f, $o) = "";
@@ -575,7 +575,7 @@ sub ignoreAdd {
 
     $ignore{$chan}{$mask} = [$expire, time(), $who, $comment];
 
-    # todo: improve this.
+    # TODO: improve this.
     if ($expire == 0) {
        &status("ignore: Added $mask for $chan to NEVER expire, by $who, for $comment");
     } else {
index b3d009da74d269ef9ac5007f926922efd93f1274..2e79107c11c354cd5f04edb964b50736c3cf7e4c 100644 (file)
@@ -156,7 +156,7 @@ sub FactoidStuff {
            return;
        }
 
-       # todo: squeeze 3 getFactInfo calls into one?
+       # TODO: squeeze 3 getFactInfo calls into one?
        my $author      = &getFactInfo($faqtoid, "created_by");
        my $count       = &getFactInfo($faqtoid, "requested_count") || 0;
        # don't delete if requested $limit times
@@ -200,7 +200,7 @@ sub FactoidStuff {
 
        # this may eat some memory.
        # prevent deletion if other factoids redirect to it.
-       # todo: use hash instead of array.
+       # TODO: use hash instead of array.
        my @list;
        if (&getChanConf("factoidPreventForgetRedirect")) {
            &status("Factoids/Core: forget: checking for redirect factoids");
@@ -219,7 +219,7 @@ sub FactoidStuff {
 
            $match++;
        }
-       # todo: warn for op aswell, but allow force delete.
+       # TODO: warn for op aswell, but allow force delete.
        if (!$isop and $match) {
            &msg($who, "uhm, other (redirection) factoids depend on this one.");
            return;
@@ -235,8 +235,8 @@ sub FactoidStuff {
            }
 
            # ignore.
-           # todo: make forget limit configurable.
-           # todo: make forget ignore time configurable.
+           # TODO: make forget limit configurable.
+           # TODO: make forget ignore time configurable.
            if ($cache{forget}{$h} > 5) {
                &ignoreAdd(&makeHostMask($nuh), "*", 3*24*60, "abuse of forget");
                &msg($who, "forget: Ignoring you for abuse!");
@@ -326,7 +326,7 @@ sub FactoidStuff {
 #      &setFactInfo($faqtoid, "modified_time", 0);
 
        $check  = &getFactoid($faqtoid);
-       # todo: check if $faqtoid." #DEL#" exists?
+       # TODO: check if $faqtoid." #DEL#" exists?
        if (defined $check) {
            &performReply("Successfully recovered '$faqtoid'.  Have fun now.");
            $count{'Undelete'}++;
index 028c72e4f015f0b5dde53e86550935f74201b02e..d58d4eda6ff9069d8adf1486cd7e625a876495b5 100644 (file)
@@ -4,7 +4,7 @@
 #   Version: 1997
 #
 
-# todo:
+# TODO:
 # use strict;
 
 sub normquery {
index 7a0497754c7c916859781548c2044a8c96583fce..3e93b05ca22f6df4470b5486bf017415181c24d7 100644 (file)
@@ -186,7 +186,7 @@ sub factoidArgs {
 
     # to make it eleeter, split each arg and use "blah OR blah or BLAH"
     # which will make it less than linear => quicker!
-    # todo: cache this, update cache when altered. !!! !!! !!!
+    # TODO: cache this, update cache when altered. !!! !!! !!!
 #    my $t = &timeget();
     my ($first) = split(/\s+/, $str);
     my @list = &searchTable("factoids", "factoid_key", "factoid_key", "^CMD: $first ");
@@ -205,7 +205,7 @@ sub factoidArgs {
 #      &DEBUG("factarg: '$str' =~ /^$_\$/");
        my $arg = $_;
 
-       # todo: <greycat> ~punish apt for (Eating) (Parentheses)
+       # TODO: <greycat> ~punish apt for (Eating) (Parentheses)
        # how the hell do I fix the above? -dms.
 
        # eval (evil!) code. cleaned up courtesy of lear.
@@ -229,7 +229,7 @@ sub factoidArgs {
 #      &DEBUG("vals => @vals");
 
        &status("Question: factoid Arguments for '$str'");
-       # todo: use getReply() - need to modify it :(
+       # TODO: use getReply() - need to modify it :(
        my $i   = 0;
        my $q   = "CMD: $_";
        my $r   = &getFactoid($q);
index 056f947e4100475dfe3ddf69642111c7e33e6d1c..4c8a44dc864646341a882d65e6a256e9e4196dae 100644 (file)
@@ -71,7 +71,7 @@ sub getReply {
                requested_count => $count
        } );
 
-       # todo: rename $real to something else!
+       # TODO: rename $real to something else!
        my $real   = 0;
 #      my $author = &getFactInfo($lhs,"created_by") || '';
 #      $real++ if ($author =~ /^\Q$who\E\!/);
@@ -240,7 +240,7 @@ sub substVars {
     my($reply,$flag) = @_;
 
     # $date, $time.
-    # todo: support localtime.
+    # TODO: support localtime.
     my $date   =  scalar(gmtime());
     $date      =~ s/\:\d+(\s+\w+)\s+\d+$/$1/;
     $reply     =~ s/\$date/$date/gi;
index c41c9e6e4c00fee09635b2885de70eb583c0f3b9..2a02b24d24e5f4b2c611f1d654fed974cfa19c6e 100644 (file)
@@ -121,7 +121,7 @@ sub update {
 
     if ($also) {                       # 'is also'.
        if ($exists =~ /^<REPLY> see /i) {
-           &DEBUG("Update.pl: todo: append to linked factoid.");
+           &TODO("Update.pl: append to linked factoid.");
        }
 
        if ($also_or) {                 # 'is also ||'.
index 8055c4f027d76e9a51a4d425ac0991a22c878599..aa69201cc4573a615a0061a2560bc5d9e8887df2 100644 (file)
@@ -316,7 +316,7 @@ sub chanLimitVerify {
 
     &chanServCheck($chan);
 
-    ### todo: unify code with chanlimitcheck()
+    ### TODO: unify code with chanlimitcheck()
     return if ($delta > 5);
 
     &status("clc: big change in limit for $chan ($delta);".
@@ -350,7 +350,7 @@ sub chanServCheck {
     }
 
     # check for first hash then for next hash.
-    # todo: a function for &ischanop()? &isvoice()?
+    # TODO: a function for &ischanop()? &isvoice()?
     if (exists $channels{$chan} and exists $channels{$chan}{'o'}{$ident}) {
        return 0;
     }
index 9c9d87c06f70531924671117d36234add002135f..5a18b7cfbf7f0ae6a34d6985c9c7d6f0cd66a2f6 100644 (file)
@@ -69,7 +69,7 @@ sub on_chat {
 
        ### TODO: prevent users without CRYPT chatting.
        if (!defined $crypto) {
-           &DEBUG("todo: dcc close chat");
+           &TODO("dcc close chat");
            &msg($who, "nope, no guest logins allowed...");
            return;
        }
@@ -344,7 +344,7 @@ sub on_dcc_open_chat {
     my $crypto = $users{$userHandle}{PASS};
     $dcc{'CHAT'}{$nick} = $sock;
 
-    # todo: don't make DCC CHAT established in the first place.
+    # TODO: don't make DCC CHAT established in the first place.
     if ($userHandle eq "_default") {
        &dccsay($nick, "_default/guest not allowed");
        $sock->close();
@@ -694,7 +694,7 @@ sub on_nick {
            $channels{$chan}{$mode}{$newnick} = $channels{$chan}{$mode}{$nick};
        }
     }
-    # todo: do %flood* aswell.
+    # TODO: do %flood* aswell.
 
     &delUserInfo($nick, keys %channels);
     $nuh{lc $newnick} = $nuh{lc $nick};
@@ -735,6 +735,7 @@ sub on_nick_taken {
 
 sub on_notice {
     my ($self, $event) = @_;
+    #$conn = $self; <- ugly hack or elegant solution?
     my $nick = $event->nick();
     my $chan = ($event->to)[0];
     my $args = ($event->args)[0];
@@ -855,7 +856,7 @@ sub on_public {
     $uh                = $event->userhost();
     $nuh       = $nick."!".$uh;
     $msgType   = "public";
-    # todo: move this out of hookMsg to here?
+    # TODO: move this out of hookMsg to here?
     ($user,$host) = split(/\@/, $uh);
     $h         = $host;
 
index bf254ba6c6d46f85b2d92a68a8678df98bde668b..00dabb3889e400442e2ffd4d74e701cf9ea7d199 100644 (file)
@@ -77,10 +77,10 @@ sub setupSchedulers {
     &kernelLoop(2);
     &wingateWriteFile(2);
     &factoidCheck(2);  # takes a couple of seconds on a 486. defer it
-# todo: convert to new format... or nuke altogether.
+# TODO: convert to new format... or nuke altogether.
     &newsFlush(1);
 
-    # todo: squeeze this into a one-liner.
+    # TODO: squeeze this into a one-liner.
 #    my $count = map { exists $sched{$_}{TIME} } keys %sched;
     my $count  = 0;
     foreach (keys %sched) {
@@ -327,7 +327,7 @@ sub newsFlush {
 
            next unless (time() > $t);
 
-           # todo: show how old it was.
+           # TODO: show how old it was.
            delete $::news{$chan}{$item};
            &status("NEWS: (newsflush) deleted '$item'");
            $delete++;
@@ -338,7 +338,7 @@ sub newsFlush {
        $none{$chan} = 1 if ($total == $i);
     }
 
-    # todo: flush users aswell.
+    # TODO: flush users aswell.
     my $duser  = 0;
     foreach $chan (keys %::newsuser) {
        next if (exists $none{$chan});
@@ -683,10 +683,10 @@ sub ircCheck {
        &joinNextChan();
     }
 
-    # todo: fix on_disconnect()
+    # TODO: fix on_disconnect()
 
     if (time() - $msgtime > 3600) {
-       # todo: shouldn't we use cache{connect} somewhere?
+       # TODO: shouldn't we use cache{connect} somewhere?
        if (exists $cache{connect}) {
            &WARN("ircCheck: no msg for 3600 and disco'd! reconnecting!");
            $msgtime = time();  # just in case.
@@ -812,7 +812,7 @@ sub miscCheck2 {
     closedir DEBIAN;
 
     # compress logs that should have been compressed.
-    # todo: use strftime?
+    # TODO: use strftime?
     my ($day,$month,$year) = (gmtime(time()))[3,4,5];
     my $date = sprintf("%04d%02d%02d",$year+1900,$month+1,$day);
 
@@ -963,7 +963,7 @@ sub wingateCheck {
     undef @wingateNow;
 }
 
-### TODO.
+### TODO: ??
 sub wingateWriteFile {
     if (@_) {
        &ScheduleThis(60, "wingateWriteFile");
index 45d7834cd50e96c222500d08063ce97d6f5ab268..0e79930bd91707ec754213eb49625bf4c3ba59b2 100644 (file)
@@ -8,7 +8,7 @@
 package Debian;
 
 use strict;
-no strict 'refs'; # FIXME dstats aborts if set
+no strict 'refs'; # FIXME: dstats aborts if set
 
 my $announce   = 0;
 my $defaultdist        = "sid";
@@ -691,7 +691,7 @@ sub infoPackages {
 
     if (! -f $files[0]) {
        &::WARN("files[0] ($files[0]) doesn't exist.");
-       &::msg($::who, "WARNING: $files[0] does not exist? FIXME");
+       &::msg($::who, "FIXME: $files[0] does not exist?");
        return 'NULL';
     }
 
@@ -1111,7 +1111,7 @@ sub debianCheck {
     while (defined($file = readdir DEBIAN)) {
        next unless ($file =~ /(gz|bz2)$/);
 
-       # todo: add bzip2 support (debian doesn't do .bz2 anyway)
+       # TODO: add bzip2 support (debian doesn't do .bz2 anyway)
        my $exit = system("/bin/gzip -t '$debian_dir/$file'");
        next unless ($exit);
        &::DEBUG("deb: hmr... => ".(time() - (stat($file))[8])."'.");
index 38d81cdb394aeb3ade7cfb68d71c8a1f28a5d5f0..d310491773c43c2ea6610fffbfdf8c4b55d453a0 100644 (file)
@@ -4,6 +4,8 @@
 #  Version: v0.6c (20000924).
 #  Created: 19990914.
 #
+# see http://luetzschena-stahmeln.de/dictd/
+# for a list of dict servers
 
 package Dict;
 
index 438471f5ca3ed4467704b9684d3f46baad727ef1..298e85dc582e0b6bf9709448463953a087765371 100644 (file)
@@ -236,7 +236,7 @@ sub CmdFactStats {
        push(@list, "total prepared for deletion - $str");
 
        # total unique authors.
-       # todo: convert to sqlSelectColHash ? (or ColArray?)
+       # TODO: convert to sqlSelectColHash ? (or ColArray?)
        foreach ( &sqlRawReturn("SELECT created_by FROM factoids WHERE created_by IS NOT NULL") ) {
            /^(\S+)!/;
            my $nick = lc $1;
@@ -728,7 +728,7 @@ sub CmdFactStats {
        return &formListReply(1, $prefix, @list);
 
     } elsif ($type =~ /^unrequest(ed)?$/i) {
-       # todo: use sqlSelect()
+       # TODO: use sqlSelect()
        my ($count) = &sqlRawReturn("SELECT COUNT(*) FROM factoids WHERE requested_count = '0'");
 
        return "Unrequested factoids: $count";
index caee5f104751e0fab85324b543997dfecb8f4292..a2d7c3eab88b997ed0e5154a0f311a45fcf157ee 100644 (file)
@@ -40,7 +40,7 @@ sub Parse {
     }
 
     if (defined $what and $what =~ s/^($::mask{chan})\s*//) {
-       # todo: check if the channel exists aswell.
+       # TODO: check if the channel exists aswell.
        $chan   = lc $1;
 
        if (!&::IsNickInChan($who, $chan)) {
@@ -118,7 +118,7 @@ sub Parse {
     } elsif ($what =~ /^(un)?notify$/i) {
        my $state = ($1) ? 0 : 1;
 
-       # todo: don't notify even if "news" is called.
+       # TODO: don't notify even if "news" is called.
        if (!&::IsChanConf("newsNotifyAll")) {
            &::DEBUG("news: chan => $chan, ::chan => $::chan.");
            &::notice($who, "not available for this channel or disabled altogether.");
@@ -167,7 +167,7 @@ sub readNews {
     while (<NEWS>) {
        chop;
 
-       # todo: allow commands.
+       # TODO: allow commands.
 
        if (/^[\s\t]+(\S+):[\s\t]+(.*)$/) {
            if (!defined $item) {
@@ -218,7 +218,7 @@ sub writeNews {
        return;
     }
 
-    # todo: add commands to output file.
+    # TODO: add commands to output file.
     my $c = 0;
     my($cc,$ci,$cu) = (0,0,0);
 
@@ -243,7 +243,7 @@ sub writeNews {
        }
     }
 
-    # todo: show how many users we wrote down.
+    # TODO: show how many users we wrote down.
     if (&::getChanConfList("newsKeepRead")) {
        # old users are removed in newsFlush(), perhaps it should be
        # done here.
@@ -353,7 +353,7 @@ sub del {
        $auth++ if (&::IsFlag("o"));
 
        if (!$auth) {
-           # todo: show when it'll expire.
+           # TODO: show when it'll expire.
            &::notice($who, "Sorry, you cannot remove items; just let them expire on their own.");
            return;
        }
@@ -420,7 +420,7 @@ sub list {
            next;
        }
 
-       # todo: show request stats aswell.
+       # TODO: show request stats aswell.
        &::msg($who, sprintf("\002[\002%2d\002]\002%s %s",
                                $i, $chr, $subtopic));
        $i++;
@@ -452,7 +452,7 @@ sub read {
 
     my $item   = &getNewsItem($str);
     if (!defined $item or !scalar keys %{ $::news{$chan}{$item} }) {
-       # todo: numerical check.
+       # TODO: numerical check.
        if ($str =~ /^(\d+)[-, ](\d+)$/ or
            $str =~ /^-(\d+)$/ or
            $str =~ /^(\d+)-$/ or 0
@@ -536,9 +536,9 @@ sub mod {
        }
 
        ### TODO: use m### to make code safe!
-       # todo: make code safer.
+       # TODO: make code safer.
        my $done = 0;
-       # todo: use eval to deal with flags easily.
+       # TODO: use eval to deal with flags easily.
        if ($flags eq "") {
            $done++ if (!$done and $mod_news  =~ s/\Q$op\E/$np/);
            $done++ if (!$done and $mod_nnews =~ s/\Q$op\E/$np/);
@@ -642,7 +642,7 @@ sub set {
     }
 
     if ($what eq "Expire") {
-       # todo: use do_set().
+       # TODO: use do_set().
 
        my $time = 0;
        my $plus = ($value =~ s/^\+//g);
@@ -706,12 +706,12 @@ sub set {
     }
 
     if (!$auth) {
-       # todo: show when it'll expire.
+       # TODO: show when it'll expire.
        &::notice($who, "Sorry, you cannot set items. (author $author owns it)");
        return;
     }
 
-    # todo: clean this up.
+    # TODO: clean this up.
     my $old = $::news{$chan}{$news}{$what};
     if (defined $old) {
        &::DEBUG("news: old => $old.");
@@ -727,7 +727,7 @@ sub latest {
     $chan = $tchan;
     $who  = $::who;
 
-    # todo: if chan = undefined, guess.
+    # TODO: if chan = undefined, guess.
 #    if (!exists $::news{$chan}) {
     if (!exists $::channels{$chan}) {
        &::notice($who, "invalid chan $chan") if ($flag);
@@ -844,7 +844,7 @@ sub latest {
            } );
        }
 
-       # todo: implement throttling via schedule into &notice() / &msg().
+       # TODO: implement throttling via schedule into &notice() / &msg().
        $::conn->schedule(int((2+$i)/2), sub {
            &::notice($who, "|= to read, do \002news $chan read <#>\002 or \002news $chan read <keyword>\002");
        } );
@@ -989,7 +989,7 @@ sub do_set {
        return;
     }
 
-    &::DEBUG("news: do_set: TODO...");
+    &::TODO("news: do_set:");
 }
 
 sub stats {
index 647cffe0238d2c7bfd32d478e0a4d18935bd1330..ae44676965e352a819a7de17d912e162193c0827 100644 (file)
@@ -70,7 +70,7 @@ sub rootWarn {
 }
 
 # Extras function.
-# todo: support arguments to get info on a particular nick?
+# TODO: support arguments to get info on a particular nick?
 sub CmdrootWarn {
     my $reply;
     my $count = &countKeys("rootwarn");
index f287c76e89e7ebb9fa9f6f77ab859e05aa8b2979..49a91723dfd1c4f3d067396a3314cb1e621fa11f 100644 (file)
@@ -22,7 +22,7 @@ sub userDCC {
     # quit.
     if ($message =~ /^(exit|quit)$/i) {
        # do ircII clients support remote close? if so, cool!
-       &status("userDCC: quit called. FIXME");
+       &FIXME("userDCC: quit called.");
        &dcc_close($who);
        &status("userDCC: after dcc_close!");
 
@@ -339,7 +339,7 @@ sub userDCC {
 
        &DEBUG("chan => '$1', msg => '$msg'.");
 
-       # todo: add nick destination.
+       # TODO: add nick destination.
        if (&validChan($chan)) {
            &msg($chan, $msg);
        } else {
@@ -921,7 +921,7 @@ sub userDCC {
            $user       = &getUser($args[0]);
            $mask       = $args[1];
        } else {                                # <mask>
-           # who or verifyUser. FIXME (don't remember why)
+           # FIXME: who or verifyUser. (don't remember why)
            $user       = &getUser($who);
            $mask       = $args[0];
        }
@@ -932,7 +932,7 @@ sub userDCC {
        }
 
        if (!defined $mask) {
-           ### FIXME.
+           ### FIXME:
            &pSReply("Hostmasks for $user: $users{$user}{HOSTS}");
 
            return;
@@ -1225,7 +1225,7 @@ sub userDCC {
        }
 
        if ( &ignoreAdd($mask, $chan, $time, $comment) > 1) {
-           &pSReply("warn: $mask already in ignore list; written over anyway. FIXME");
+           &pSReply("FIXME: $mask already in ignore list; written over anyway.");
        } else {
            &pSReply("added $mask to ignore list.");
        }
index 56dc42797dc50da2fd18d0a80888fbb50abb73b8..1de131ca2c5c9bf026e3c382e04197c07e060b8e 100644 (file)
@@ -107,7 +107,7 @@ sub translate {
       &main::DEBUG("$translated\n===remove to first ':', optional Help\n");
 
       $translated =~ s/\n/ /g;
-      # FIXME should we do unicode->iso
+      # FIXME: should we do unicode->iso (no. use utf8!)
   } else {
       $translated = ":("; # failure
   }
index 082c8566e16637e68d7c5a6fc9bd90718d513d4c..c08341cd0e0f5a731f955c4b4fc813305d538312 100644 (file)
@@ -77,7 +77,7 @@ sub ftpGet {
     if (defined $lsize) {
        &DEBUG("FTP: locsize => '$lsize'.");
        if ($size != $lsize) {
-           &WARN("FTP: downloaded file seems truncated. FIXME.");
+           &FIXME("FTP: downloaded file seems truncated.");
        }
     }
 
@@ -145,7 +145,7 @@ sub ftpList {
 
 ### LWP.
 # Usage: &getURL($url, [$post]);
-# todo: rename this to getHTTP
+# TODO: rename this to getHTTP
 sub getURL {
     my ($url,$post) = @_;
     my ($ua,$res,$req);
index 8b58869a2338219eae005484eddb2b03d7ebdbbd..286215b1a273cd60b902ed8795521f5d4181f6e7 100644 (file)
@@ -157,7 +157,7 @@ sub process {
            return;
        }
 
-       # todo: use &getUser()?
+       # TODO: use &getUser()?
        my $first       = 1;
        foreach (keys %users) {
            if ($users{$_}{FLAGS} =~ /n/) {
index b11f221217d686aaedd66171836fa5df674cc84c..69df4514d6a1cbf1bd28cc884bc23cac0113330c 100644 (file)
@@ -164,7 +164,7 @@ sub chaninfo {
        $new{$_} = $userstats{$_}{'Count'};
     }
 
-    # todo: show top 3 with percentages?
+    # TODO: show top 3 with percentages?
     my($count) = (sort { $new{$a} <=> $new{$b} } keys %new)[0];
     if ($count) {
        $reply .= ".  \002$count\002 has said the most with a total of \002$new{$count}\002 messages";
@@ -486,7 +486,7 @@ sub do_countrystats {
        push(@list, "$str ($_, $perc %)");
     }
 
-    # todo: move this into a scheduler like nickometer
+    # TODO: move this into a scheduler like nickometer
     $msgType   = "private";
     &pSReply( &formListReply(0, "Country Stats ", @list) );
 
@@ -869,7 +869,7 @@ if (0) {
        }
 
        # idea from dondelecarlo :)
-       # todo: use cache{nickserv}
+       # TODO: use cache{nickserv}
        if ($param{'nickServ_pass'}) {
            return if ($param{'ircNick'} eq $ident or $force == 0);
 
index a74602d42a1d9aeab2979d3b3e1cb22b331af7ea..e6c530ac8b86b75e89b76fa63b32e330130b1292 100644 (file)
@@ -376,7 +376,7 @@ sub debug_perl {
        return;
     }
 
-    # todo: better filename.
+    # TODO: better filename.
     open(OUT, ">>debug.log");
     print OUT "DEBUG: $str\n";
 
@@ -386,8 +386,8 @@ sub debug_perl {
        chop;
        $i++;
        # bleh. this tries to duplicate status().
-       # todo: statcountfix
-       # todo: rename to log_*someshit*
+       # TODO: statcountfix
+       # TODO: rename to log_*someshit*
        if ($i == $line) {
            my $msg = "$file: $i:!$_";
            printf "%s[%6d]%s %s\n", $_green, $statcount, $ob, $msg;
index 7de063a38d22f412a991e8926d387c041171cb03..a86900ce5b6ece808487537e665d392d9a5c5faf 100644 (file)
@@ -87,7 +87,7 @@ sub loadCoreModules {
 
 sub loadDBModules {
     my $f;
-    # todo: use function to load module.
+    # TODO: use function to load module.
 
     if ($param{'DBType'} =~ /^(mysql|SQLite|pgsql)$/i) {
        eval "use DBI";