]> git.donarmstrong.com Git - infobot.git/blobdiff - src/DynaConfig.pl
URL patch.
[infobot.git] / src / DynaConfig.pl
index 19c7cbdad774bd54eac80365a3c5e6f37fb40eac..80522673501b884e378ba372f864f37c4c300006 100644 (file)
@@ -160,6 +160,8 @@ sub writeUserFile {
                    print OUT "--$what\t\t$_\n";
                }
 
+           } elsif ($_ eq 'FLAGS') {
+               print OUT "--$_\t\t" . join('', sort split('', $val)) . "\n";
            } else {
                print OUT "--$_\t\t$val\n";
            }
@@ -806,17 +808,17 @@ sub rehashConfVars {
        &DEBUG("rehashConfVars: _ => $_");
 
        if (/^news$/ and $i) {
-           &loadMyModule("news");
+           &loadMyModule('News');
            delete $cache{confvars}{$_};
        }
 
        if (/^uptime$/ and $i) {
-           &loadMyModule("uptime");
+           &loadMyModule('Uptime');
            delete $cache{confvars}{$_};
        }
 
        if (/^rootwarn$/i and $i) {
-           &loadMyModule($_);
+           &loadMyModule('RootWarn');
            delete $cache{confvars}{$_};
        }
     }
@@ -837,20 +839,20 @@ my @regFlagsChan = (
 );
 
 my @regFlagsUser = (
-       "m",    # modify factoid. (includes renaming)
-       "r",    # remove factoid.
-       "t",    # teach/add factoid.
+       # possible chars to include in FLAG
+       "A",    # bot administration over /msg
+                       # default is only via DCC CHAT
+       "O",    # dynamic ops (as on channel). (automatic +o)
+       "T",    # add topics.
        "a",    # ask/request factoid.
-       "n",    # bot owner
-                       # can "reload"
+       "m",    # modify factoid. (includes renaming)
+       "n",    # bot owner, can "reload"
        "o",    # master of bot (automatic +amrt)
                        # can search on factoid strings shorter than 2 chars
                        # can tell bot to join new channels
                        # can [un]lock factoids
-       "O",    # dynamic ops (as on channel). (automatic +o)
-       "A",    # bot administration over /msg
-                       # default is only via DCC CHAT
-       "T",    # add topics.
+       "r",    # remove factoid.
+       "t",    # teach/add factoid.
 );
 
 1;