]> git.donarmstrong.com Git - infobot.git/blobdiff - src/DynaConfig.pl
news -> News
[infobot.git] / src / DynaConfig.pl
index 5d9a1bc401c6958b028ae44357f703d2cb785c1d..19c7cbdad774bd54eac80365a3c5e6f37fb40eac 100644 (file)
@@ -405,7 +405,8 @@ sub writeChanFile {
 ##### USER COMMANDS.
 #####
 
-# todo: support multiple flags.
+# TODO: support multiple flags.
+# TODO: return all flags for opers
 sub IsFlag {
     my $flags = shift;
     my ($ret, $f, $o) = "";
@@ -525,7 +526,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 {
@@ -700,7 +701,7 @@ sub chanSet {
            return;
        }
        $chanconf{$chan}{_time_added}   = time();
-       $chanconf{$chan}{autojoin}      = 1;
+       $chanconf{$chan}{autojoin}      = $conn->nick();
 
        &pSReply("Joining $chan...");
        &joinchan($chan);