2 # UserDCC.pl: User Commands, DCC CHAT.
4 # Version: v0.2 (20010119)
5 # Created: 20000707 (from UserExtra.pl)
8 if (&IsParam("useStrict")) { use strict; }
16 if ($message =~ /^(exit|quit)$/i) {
17 # do ircII clients support remote close? if so, cool!
18 &status("userDCC: quit called. FIXME");
20 &status("userDCC: after dcc_close!");
26 if ($message =~ /^who$/) {
27 my $count = scalar(keys %{$dcc{'CHAT'}});
28 my $dccCHAT = $message;
30 &pSReply("Start of who ($count users).");
31 foreach (keys %{$dcc{'CHAT'}}) {
34 &pSReply("End of who.");
39 ### for those users with enough flags.
42 if ($message =~ /^4op(\s+($mask{chan}))?$/i) {
43 return unless (&hasFlag("o"));
52 if (!$channels{$chan}{'o'}{$ident}) {
53 &msg($who, "i don't have ops on $chan to do that.");
57 # on non-4mode(<4) servers, this may be exploited.
58 if ($channels{$chan}{'o'}{$who}) {
59 rawout("MODE $chan -o+o-o+o". (" $who" x 4));
61 rawout("MODE $chan +o-o+o-o". (" $who" x 4));
68 if ($message =~ /^backlog(\s+(.*))?$/i) {
69 return unless (&hasFlag("o"));
70 return unless (&hasParam("backlog"));
72 my $max = $param{'backlog'};
77 } elsif ($num !~ /^\d+/) {
78 &msg($who, "error: argument is not positive integer.");
80 } elsif ($num > $max or $num < 0) {
81 &msg($who, "error: argument is out of range (max $max).");
85 &msg($who, "Start of backlog...");
87 sleep 1 if ($_ % 4 == 0 and $_ != 0);
88 $conn->privmsg($who, "[".($_+1)."]: $backlog[$max-$num+$_]");
90 &msg($who, "End of backlog.");
96 if ($message =~ /^dumpvars$/i) {
97 return unless (&hasFlag("o"));
98 return unless (&IsParam("dumpvars"));
100 &status("Dumping all variables...");
107 if ($message =~ /^kick(\s+(\S+)(\s+(\S+))?)?/) {
108 return unless (&hasFlag("o"));
109 my ($nick,$chan) = (lc $2,lc $4);
116 if (&validChan($chan) == 0) {
117 &msg($who,"error: invalid channel \002$chan\002");
121 if (&IsNickInChan($nick,$chan) == 0) {
122 &msg($who,"$nick is not in $chan.");
132 if ($message =~ /^mode(\s+(.*))?$/) {
133 return unless (&hasFlag("m"));
134 my ($chan,$mode) = split /\s+/,$2,2;
141 if (&validChan($chan) == 0) {
142 &msg($who,"error: invalid channel \002$chan\002");
146 if (!$channels{$chan}{o}{$ident}) {
147 &msg($who,"error: don't have ops on \002$chan\002");
157 if ($message =~ /^part(\s+(\S+))?$/i) {
158 return unless (&hasFlag("o"));
161 if ($jchan !~ /^$mask{chan}$/) {
162 &msg($who, "error, invalid chan.");
167 if (!&validChan($jchan)) {
168 &msg($who, "error, I'm not on that chan.");
172 &msg($jchan, "Leaving. (courtesy of $who).");
177 # lobotomy. sometimes we want the bot to be _QUIET_.
178 if ($message =~ /^(lobotomy|bequiet)$/i) {
179 return unless (&hasFlag("o"));
182 &performReply("i'm already lobotomized");
184 &performReply("i have been lobotomized");
192 if ($message =~ /^(unlobotomy|benoisy)$/i) {
193 return unless (&hasFlag("o"));
195 &performReply("i have been unlobotomized, woohoo");
198 &performReply("i'm not lobotomized");
204 if ($message =~ /^op(\s+(.*))?$/i) {
205 return unless (&hasFlag("o"));
210 if ($opee =~ /^(\S+)\s+(\S+)$/) {
213 if (!&validChan($2)) {
214 &msg($who,"error: invalid chan ($2).");
218 &msg($who,"error: invalid params.");
222 @chans = keys %channels;
228 next unless (&IsNickInChan($opee,$_));
230 if ($channels{$_}{'o'}{$opee}) {
231 &pSReply("op: $opee already has ops on $_");
236 &pSReply("opping $opee on $_");
241 &pSReply("op: opped on all possible channels.");
243 &DEBUG("op: found => '$found'.");
244 &DEBUG("op: op => '$op'.");
251 if ($message =~ /^deop(\s+(.*))?$/i) {
252 return unless (&hasFlag("o"));
257 if ($opee =~ /^(\S+)\s+(\S+)$/) {
260 if (!&validChan($2)) {
261 &msg($who,"error: invalid chan ($2).");
265 &msg($who,"error: invalid params.");
269 @chans = keys %channels;
275 next unless (&IsNickInChan($opee,$_));
277 if (!exists $channels{$_}{'o'}{$opee}) {
278 &status("deop: $opee already has no ops on $_");
283 &status("deopping $opee on $_ at ${who}'s request");
288 &status("deop: deopped on all possible channels.");
290 &DEBUG("deop: found => '$found'.");
291 &DEBUG("deop: op => '$op'.");
298 if ($message =~ s/^say\s+(\S+)\s+(.*)//) {
299 return unless (&hasFlag("o"));
300 my ($chan,$msg) = (lc $1, $2);
301 &DEBUG("chan => '$1', msg => '$msg'.");
303 if (&validChan($chan)) {
306 &msg($who,"i'm not on \002$1\002, sorry.");
312 if ($message =~ /^die$/) {
313 return unless (&hasFlag("n"));
317 &status("Dying by $who\'s request");
321 # global factoid substitution.
322 if ($message =~ m|^s([/,#])(.+?)\1(.*?)\1;?\s*$|) {
323 my ($delim,$op,$np) = ($1, $2, $3);
324 return unless (&hasFlag("n"));
325 ### TODO: support flags to do full-on global.
328 if ($np =~ /$delim/) {
329 &performReply("looks like you used the delimiter too many times. You may want to use a different delimiter, like ':' or '#'.");
333 ### TODO: fix up $op to support mysql/pgsql/dbm(perl)
334 ### TODO: => add db/sql specific function to fix this.
335 my @list = &searchTable("factoids", "factoid_key",
336 "factoid_value", $op);
339 &performReply("Expression didn't match anything.");
343 if (scalar @list > 100) {
344 &performReply("regex found more than 100 matches... not doing.");
348 &status("gsubst: going to alter ".scalar(@list)." factoids.");
349 &performReply("going to alter ".scalar(@list)." factoids.");
355 next if (&IsLocked($faqtoid) == 1);
356 my $result = &getFactoid($faqtoid);
358 &DEBUG("was($faqtoid) => '$was'.");
361 # we could support global local (once off).
362 if ($result =~ s/\Q$op/$np/gi) {
363 if (length $result > $param{'maxDataSize'}) {
364 &performReply("that's too long (or was long)");
367 &setFactInfo($faqtoid, "factoid_value", $result);
368 &status("update: '$faqtoid' =is=> '$result'; was '$was'");
370 &WARN("subst: that's weird... thought we found the string ($op) in '$faqtoid'.");
376 &ERROR("Some warnings/errors?");
379 &performReply("Ok... did s/$op/$np/ for ".
380 (scalar(@list) - $error)." factoids");
386 if ($message =~ /^jump(\s+(\S+))?$/i) {
387 return unless (&hasFlag("n"));
395 if ($2 =~ /^(\S+)(:(\d+))?$/) {
399 &msg($who,"invalid format.");
403 &status("jumping servers... $server...");
404 &rawout("QUIT :jumping to $server");
406 if (&irc($server,$port) == 0) {
412 if ($message =~ /^reload$/i) {
413 return unless (&hasFlag("n"));
415 &status("USER reload $who");
416 &pSReply("reloading...");
418 &pSReply("reloaded.");
424 if ($message =~ /^rehash$/) {
425 return unless (&hasFlag("n"));
427 &msg($who,"rehashing...");
429 &status("USER rehash $who");
430 &msg($who,"rehashed");
436 ##### USER//CHAN SPECIFIC CONFIGURATION COMMANDS
439 if ($message =~ /^chaninfo(\s+(.*))?$/) {
440 my @args = split /[\s\t]+/, $2; # hrm.
442 if (scalar @args != 1) {
447 if (!exists $chanconf{$args[0]}) {
448 &pSReply("no such channel $args[0]");
452 &pSReply("showing channel conf.");
453 foreach (sort keys %{ $chanconf{$args[0]} }) {
454 &pSReply("$chan: $_ => $chanconf{$args[0]}{$_}");
456 &pSReply("End of chaninfo.");
462 if ($message =~ /^(chanset|\+chan)(\s+(.*?))?$/) {
467 if (!defined $args) {
473 while ($args =~ s/^($mask{chan})\s*//) {
477 if (!scalar @chans) {
478 push(@chans, "_default");
482 my($what,$val) = split /[\s\t]+/, $args, 2;
484 ### TODO: "cannot set values without +m".
485 return unless (&hasFlag("m"));
488 if (defined $what and $what !~ /^[-+]/ and !defined $val and $no_chan) {
489 &pSReply("Showing $what values on all channels...");
492 foreach (keys %chanconf) {
493 my $val = $chanconf{$_}{$what} || "NOT-SET";
497 foreach (keys %vals) {
498 &pSReply(" $what = $_: ".join(' ', keys %{ $vals{$_} } ) );
501 &pSReply("End of list.");
506 ### TODO: move to UserDCC again.
507 if ($cmd eq "chanset" and !defined $what) {
508 &DEBUG("showing channel conf.");
510 foreach $chan ($chan, "_default") {
511 &pSReply("chan: $chan");
512 ### TODO: merge 2 or 3 per line.
515 foreach (sort keys %{ $chanconf{$chan} }) {
516 my $newstr = join(', ', @items);
517 if (length $newstr > 60) {
522 push(@items, "$_ => $chanconf{$chan}{$_}");
524 &pSReply(" $str") if (@items);
530 &chanSet($cmd, $_, $what, $val);
536 if ($message =~ /^(chanunset|\-chan)(\s+(.*))?$/) {
537 return unless (&hasFlag("m"));
541 if (!defined $args) {
548 if ($args =~ s/^(\-)?($mask{chan})\s*//) {
550 $delete = ($1) ? 1 : 0;
551 &DEBUG("chan => $chan.");
553 &VERB("no chan arg; setting to default.",2);
558 if (!exists $chanconf{$chan}) {
559 &pSReply("no such channel $chan");
565 if (!&getChanConf($args,$chan)) {
566 &pSReply("$args does not exist for $chan");
570 my @chans = &ChanConfList($args);
571 &DEBUG("scalar chans => ".scalar(@chans) );
572 if (scalar @chans == 1 and $chans[0] eq "_default" and !$no_chan) {
573 &psReply("ok, $args was set only for _default; unsetting for _defaul but setting for other chans.");
575 my $val = $chanconf{$_}{_default};
576 foreach (keys %chanconf) {
577 $chanconf{$_}{$args} = $val;
579 delete $chanconf{_default}{$args};
584 if ($no_chan and !exists($chanconf{_default}{$args})) {
585 &pSReply("ok, $args for _default does not exist, removing from all chans.");
587 foreach (keys %chanconf) {
588 next unless (exists $chanconf{$_}{$args});
589 &DEBUG("delete chanconf{$_}{$args};");
590 delete $chanconf{$_}{$args};
596 &pSReply("Unsetting channel ($chan) option $args. (was $chanconf{$chan}{$args})");
597 delete $chanconf{$chan}{$args};
603 &pSReply("Deleting channel $chan for sure!");
604 $utime_chanfile = time();
608 &pSReply("Leaving $chan...");
610 delete $chanconf{$chan};
612 &pSReply("Prefix channel with '-' to delete for sure.");
618 if ($message =~ /^newpass(\s+(.*))?$/) {
619 my(@args) = split /[\s\t]+/, $2 || '';
621 if (scalar @args != 1) {
626 my $u = &getUser($who);
628 my $salt = join '',('.','/',0..9,'A'..'Z','a'..'z')[rand 64, rand 64];
629 my $crypt = crypt($args[0], $salt);
630 &pSReply("Set your passwd to '$crypt'");
631 $users{$u}{PASS} = $crypt;
633 $utime_userfile = time();
639 if ($message =~ /^chpass(\s+(.*))?$/) {
640 my(@args) = split /[\s\t]+/, $2 || '';
647 if (!&IsUser($args[0])) {
648 &pSReply("user $args[0] is not valid.");
652 my $u = &getUser($args[0]);
654 &pSReply("Internal error, u = NULL.");
658 if (scalar @args == 1) { # del pass.
659 if (!&IsFlag("m") and $who !~ /^\Q$verifyUser\E$/i) {
660 &pSReply("cannto remove passwd of others.");
664 if (!exists $users{$u}{PASS}) {
665 &pSReply("$u does not have pass set anyway.");
669 &pSReply("Deleted pass from $u.");
671 $utime_userfile = time();
674 delete $users{$u}{PASS};
679 my $salt = join '',('.','/',0..9,'A'..'Z','a'..'z')[rand 64, rand 64];
680 my $crypt = crypt($args[1], $salt);
681 &pSReply("Set $u's passwd to '$crypt'");
682 $users{$u}{PASS} = $crypt;
684 $utime_userfile = time();
690 if ($message =~ /^chattr(\s+(.*))?$/) {
691 my(@args) = split /[\s\t]+/, $2 || '';
699 if ($args[0] =~ /^$mask{nick}$/i) { # <nick>
700 $user = &getUser($args[0]);
703 $user = &getUser($who);
704 &DEBUG("user $who... nope.") unless (defined $user);
705 $user = &getUser($verifyUser);
709 if (!defined $user) {
710 &pSReply("user $user does not exist.");
714 my $flags = $users{$user}{FLAGS};
715 if (!defined $chflag) {
716 &pSReply("Flags for $user: $flags");
720 &DEBUG("who => $who");
721 &DEBUG("verifyUser => $verifyUser");
722 if (!&IsFlag("m") and $who !~ /^\Q$verifyUser\E$/i) {
723 &pSReply("cannto change attributes of others.");
729 foreach (split //, $chflag) {
730 if ($_ eq "+") { $state = 1; next; }
731 if ($_ eq "-") { $state = 0; next; }
733 if (!defined $state) {
734 &pSReply("no initial + or - was found in attr.");
739 next if ($flags =~ /\Q$_\E/);
742 if (&IsParam("owner")
743 and $param{owner} =~ /^\Q$user\E$/i
744 and $flags =~ /[nmo]/
746 &pSReply("not removing flag $_ for $user.");
749 next unless ($flags =~ s/\Q$_\E//);
756 $utime_userfile = time();
758 &pSReply("Current flags: $flags");
759 $users{$user}{FLAGS} = $flags;
761 &pSReply("No flags changed: $flags");
767 if ($message =~ /^chnick(\s+(.*))?$/) {
768 my(@args) = split /[\s\t]+/, $2 || '';
770 if ($who eq "_default") {
771 &WARN("$who or verifyuser tried to run chnick.");
775 if (!scalar @args or scalar @args > 2) {
780 if (scalar @args == 1) { # 1
781 $user = &getUser($who);
782 &DEBUG("nope, not $who.") unless (defined $user);
783 $user ||= &getUser($verifyUser);
786 $user = &getUser($args[0]);
790 if (!defined $user) {
791 &pSReply("user $who or $args[0] does not exist.");
795 if ($user =~ /^\Q$chnick\E$/i) {
796 &pSReply("user == chnick. why should I do that?");
800 if (&getUser($chnick)) {
801 &pSReply("user $chnick is already used!");
805 if (!&IsFlag("m") and $who !~ /^\Q$verifyUser\E$/i) {
806 &pSReply("cannto change nick of others.");
807 return "REPLY" if ($who eq "_default");
811 foreach (keys %{ $users{$user} }) {
812 $users{$chnick}{$_} = $users{$user}{$_};
813 delete $users{$user}{$_};
815 undef $users{$user}; # ???
817 $utime_userfile = time();
820 &pSReply("Changed '$user' to '$chnick' successfully.");
825 if ($message =~ /^([-+])host(\s+(.*))?$/) {
827 my(@args) = split /[\s\t]+/, $3 || '';
828 my $state = ($1 eq "+") ? 1 : 0;
835 if ($who eq "_default") {
836 &WARN("$who or verifyuser tried to run $cmd.");
841 if ($args[0] =~ /^$mask{nick}$/i) { # <nick>
842 return unless (&hasFlag("m"));
843 $user = &getUser($args[0]);
846 # who or verifyUser. FIXME!!!
847 $user = &getUser($who);
851 if (!defined $user) {
852 &pSReply("user $user does not exist.");
856 if (!defined $mask) {
858 &pSReply("Hostmasks for $user: $users{$user}{HOSTS}");
863 if (!&IsFlag("m") and $who !~ /^\Q$verifyUser\E$/i) {
864 &pSReply("cannto change masks of others.");
868 if ($mask !~ /^$mask{nuh}$/) {
869 &pSReply("error: mask ($mask) is not a real hostmask.");
873 my $count = scalar keys %{ $users{$user}{HOSTS} };
876 if (exists $users{$user}{HOSTS}{$mask}) {
877 &pSReply("mask $mask already exists.");
881 ### TODO: override support.
882 $users{$user}{HOSTS}{$mask} = 1;
884 &pSReply("Added $mask to list of masks.");
888 if (!exists $users{$user}{HOSTS}{$mask}) {
889 &pSReply("mask $mask does not exist.");
893 ### TODO: wildcard support. ?
894 delete $users{$user}{HOSTS}{$mask};
896 if (scalar keys %{ $users{$user}{HOSTS} } != $count) {
897 &pSReply("Removed $mask from list of masks.");
899 &pSReply("error: could not find $mask in list of masks.");
904 $utime_userfile = time();
910 if ($message =~ /^([-+])ban(\s+(.*))?$/) {
913 my(@args) = split /[\s\t]+/, $3 || '';
914 my $state = ($1 eq "+") ? 1 : 0;
921 my($mask,$chan,$time,$reason);
923 if ($flatarg =~ s/^($mask{nuh})\s*//) {
926 &DEBUG("arg does not contain nuh mask?");
929 if ($flatarg =~ s/^($mask{chan})\s*//) {
932 $chan = "*"; # _default instead?
935 if ($state == 0) { # delete.
936 my @c = &banDel($mask);
943 &pSReply("Removed $mask from chans: @c");
945 &pSReply("$mask was not found in ban list.");
956 if ($flatarg =~ s/^(\d+)\s*//) {
958 &DEBUG("time = $time.");
960 &pSReply("error: time cannot be negatime?");
967 if ($flatarg =~ s/^(.*)$//) { # need length?
971 if (!&IsFlag("m") and $who !~ /^\Q$verifyUser\E$/i) {
972 &pSReply("cannto change masks of others.");
976 if ($mask !~ /^$mask{nuh}$/) {
977 &pSReply("error: mask ($mask) is not a real hostmask.");
981 if ( &banAdd($mask,$chan,$time,$reason) == 2) {
982 &pSReply("ban already exists; overwriting.");
984 &pSReply("Added $mask for $chan (time => $time, reason => $reason)");
989 if ($message =~ /^whois(\s+(.*))?$/) {
997 my $user = &getUser($arg);
998 if (!defined $user) {
999 &pSReply("whois: user $user does not exist.");
1003 ### TODO: better (eggdrop-like) output.
1004 &pSReply("user: $user");
1005 foreach (keys %{ $users{$user} }) {
1006 my $ref = ref $users{$user}{$_};
1008 if ($ref eq "HASH") {
1010 ### DOES NOT WORK???
1011 foreach (keys %{ $users{$user}{$type} }) {
1012 &pSReply(" $type => $_");
1017 &pSReply(" $_ => $users{$user}{$_}");
1019 &pSReply("End of USER whois.");
1024 if ($message =~ /^bans(\s+(.*))?$/) {
1028 if ($arg ne "_default" and !&validChan($arg) ) {
1029 &pSReply("error: chan $chan is invalid.");
1034 if (!scalar keys %bans) {
1035 &pSReply("Ban list is empty.");
1040 &pSReply(" mask: expire, time-added, count, who-by, reason");
1041 foreach $c (keys %bans) {
1042 next unless (!defined $arg or $arg =~ /^\Q$c\E$/i);
1045 foreach (keys %{ $bans{$c} }) {
1046 my $val = $bans{$c}{$_};
1048 if (ref $val eq "ARRAY") {
1049 my @array = @{ $val };
1050 &pSReply(" $_: @array");
1052 &DEBUG("unknown ban: $val");
1056 &pSReply("END of bans.");
1061 if ($message =~ /^banlist(\s+(.*))?$/) {
1064 if (defined $arg and $arg !~ /^$mask_chan$/) {
1065 &pSReply("error: chan $chan is invalid.");
1069 &DEBUG("bans for global or arg => $arg.");
1070 foreach (keys %bans) { #CHANGE!!!
1071 &DEBUG(" $_ => $bans{$_}.");
1074 &DEBUG("End of bans.");
1075 &pSReply("END of bans.");
1080 if ($message =~ /^save$/) {
1081 return unless (&hasFlag("o"));
1090 $message =~ s/^addignore/+ignore/;
1091 $message =~ s/^(del|un)ignore/-ignore/;
1094 if ($message =~ /^(\+|\-)ignore(\s+(.*))?$/i) {
1095 return unless (&hasFlag("o"));
1096 my $state = ($1 eq "+") ? 1 : 0;
1097 my $str = $1."ignore";
1105 my($mask,$chan,$time,$comment);
1108 if ($args =~ s/^($mask{nuh})\s*//) {
1111 &ERROR("no NUH mask?");
1115 if (!$state) { # delignore.
1116 if ( &ignoreDel($mask) ) {
1117 &pSReply("ok, deleted X ignores.");
1119 &pSReply("could not find $mask in ignore list.");
1129 if ($args =~ s/^($mask{chan}|\*)\s*//) {
1136 if ($args =~ s/^(\d+)\s*//) {
1146 $comment = "added by $who";
1149 if ( &ignoreAdd($mask, $chan, $time, $comment) > 1) {
1150 &pSReply("warn: $mask already in ignore list; written over anyway. FIXME");
1152 &pSReply("added $mask to ignore list.");
1158 if ($message =~ /^ignore(\s+(.*))?$/) {
1162 if ($arg !~ /^$mask{chan}$/) {
1163 &pSReply("error: chan $chan is invalid.");
1167 if (!&validChan($arg)) {
1168 &pSReply("error: chan $arg is invalid.");
1172 &pSReply("Showing bans for $arg only.");
1175 if (!scalar keys %ignore) {
1176 &pSReply("Ignore list is empty.");
1180 ### TODO: proper (eggdrop-like) formatting.
1182 &pSReply(" mask: expire, time-added, who, comment");
1183 foreach $c (keys %ignore) {
1184 next unless (!defined $arg or $arg =~ /^\Q$c\E$/i);
1187 foreach (keys %{ $ignore{$c} }) {
1188 my $ref = ref $ignore{$c}{$_};
1189 if ($ref eq "ARRAY") {
1190 my @array = @{ $ignore{$c}{$_} };
1191 &pSReply(" $_: @array");
1193 &DEBUG("unknown ignore line?");
1197 &pSReply("END of ignore.");
1203 if ($message =~ /^(\+|\-|add|del)user(\s+(.*))?$/i) {
1205 my $strstr = $1."user";
1206 my @args = split /\s+/, $3 || '';
1208 my $state = ($str =~ /^(\+|add)$/) ? 1 : 0;
1210 if (!scalar @args) {
1216 if (scalar @args != 2) {
1217 &pSReply(".+host requires hostmask argument.");
1220 } elsif (scalar @args != 1) {
1221 &pSReply("too many arguments.");
1225 if ($state) { # adduser.
1226 if (scalar @args == 1) {
1227 $args[1] = &getHostMask($args[0]);
1228 if (!defined $args[1]) {
1229 &ERROR("could not get hostmask?");
1234 if ( &userAdd(@args) ) { # success.
1235 &pSReply("Added $args[0]...");
1238 &pSReply("User $args[0] already exists");
1243 if ( &userDel($args[0]) ) { # success.
1244 &pSReply("Deleted $args[0] successfully.");
1247 &pSReply("User $args[0] does not exist.");
1254 if ($message =~ /^sched$/) {
1259 foreach (keys %sched) {
1260 next unless (exists $sched{$_}{TIME});
1261 $time{ $sched{$_}{TIME}-time() }{$_} = 1;
1264 next unless (exists $sched{$_}{RUNNING});
1269 foreach (sort { $a <=> $b } keys %time) {
1270 my $str = join(", ", sort keys %{ $time{$_} });
1271 &DEBUG("time => $_, str => $str");
1272 push(@time, "$str (".&Time2String($_).")");
1275 &pSReply( &formListReply(0, "Schedulers: ", @time ) );
1276 &pSReply( &formListReply(0, "Scheds to run: ", sort @list ) );
1277 &pSReply( &formListReply(0, "Scheds running(should not happen?) ", sort @run ) );