2 # News.pl: Advanced news management
4 # Version: v0.3 (20010412)
6 # Notes: Testing done by greycat, kudos!
9 # news{ channel }{ string } { item }
10 # newsuser{ channel }{ user } = time()
12 # Time - when it was added (used for sorting)
14 # Expire - Time to expire.
22 use vars qw($who $chan);
30 if (!exists $::cache{newsFirst}) {
31 &::DEBUG("news: looks like we enabled news option just then; loading up news file just in case.");
32 $::cache{newsFirst} = 1;
38 if ($::msgType ne 'private') {
42 if (defined $what and $what =~ s/^($::mask{chan})\s*//) {
43 # TODO: check if the channel exists aswell.
46 if (!&::IsNickInChan($who, $chan)) {
47 &::notice($who, "sorry but you're not on $chan.");
53 my @chans = &::getNickInChans($who);
55 if (scalar @chans > 1) {
56 &::notice($who, "error: I dunno which channel you are referring to since you're on more than one. Try 'news #chan ...' instead");
60 if (scalar @chans == 0) {
61 &::notice($who, "error: I couldn't find you on any chan. This must be a bug!");
66 &::VERB("Guessed $who being on chan $chan",2);
67 $::chan = $chan; # hack for IsChanConf().
70 if (!defined $what or $what =~ /^\s*$/) {
75 if ($what =~ /^add(\s+(.*))?$/i) {
78 } elsif ($what =~ /^del(\s+(.*))?$/i) {
81 } elsif ($what =~ /^mod(\s+(.*))?$/i) {
84 } elsif ($what =~ /^set(\s+(.*))?$/i) {
87 } elsif ($what =~ /^(\d+)$/i) {
88 &::VERB("News: read shortcut called.",2);
91 } elsif ($what =~ /^read(\s+(.*))?$/i) {
94 } elsif ($what =~ /^(latest|new)(\s+(.*))?$/i) {
95 &latest($3 || $chan, 1);
96 # $::cmdstats{'News latest'}++;
98 } elsif ($what =~ /^stats?$/i) {
101 } elsif ($what =~ /^list$/i) {
104 } elsif ($what =~ /^(expire|text|desc)(\s+(.*))?$/i) {
108 my($arg1,$arg2) = split(/\s+/, $3, 2);
109 &set("$arg1 $cmd $arg2");
111 } elsif ($what =~ /^help(\s+(.*))?$/i) {
114 } elsif ($what =~ /^newsflush$/i) {
115 &::msg($who, "newsflush called... check out the logs!");
118 } elsif ($what =~ /^(un)?notify$/i) {
119 my $state = ($1) ? 0 : 1;
121 # TODO: don't notify even if 'News' is called.
122 if (&::IsChanConf('newsNotifyAll') <= 0) {
123 &::DEBUG("news: chan => $chan, ::chan => $::chan.");
124 &::notice($who, "not available for this channel or disabled altogether.");
128 my $t = $::newsuser{$chan}{$who};
129 if ($state) { # state = 1
130 if (defined $t and ($t == 0 or $t == -1)) {
131 &::notice($who, "enabled notify.");
132 delete $::newsuser{$chan}{$who};
135 &::notice($who, "already enabled.");
138 my $x = $::newsuser{$chan}{$who};
139 if (defined $x and ($x == 0 or $x == -1)) {
140 &::notice($who, 'notify already disabled');
143 $::newsuser{$chan}{$who} = -1;
144 &::notice($who, "notify is now disabled.");
148 &::notice($who, "unknown command: $what");
153 my $file = "$::bot_base_dir/infobot-news.txt";
154 if (! -f $file or -z $file) {
159 &::DEBUG("readNews: fileno exists, should never happen.");
170 # TODO: allow commands.
172 if (/^[\s\t]+(\S+):[\s\t]+(.*)$/) {
173 if (!defined $item) {
174 &::DEBUG("news: !defined item, never happen!");
178 $::news{$chan}{$item}{$1} = $2;
182 # U <chan> <nick> <time>
183 if (/^U\s+(\S+)\s+(\S+)\s+(\d+)$/) {
184 $::newsuser{$1}{$2} = $3;
189 if (/^(\S+)[\s\t]+(.*)$/) {
197 my $cn = scalar(keys %::news);
198 return unless ($ci or $cn or $cu);
200 &::status("News: read ".
201 $ci. &::fixPlural(' item', $ci). ' for '.
202 $cn. &::fixPlural(' chan', $cn). ', '.
203 $cu. &::fixPlural(' user', $cu), ' cache'
208 if (!scalar keys %::news and !scalar keys %::newsuser) {
209 &::VERB("wN: nothing to write.",2);
213 # should define this at the top of file.
214 my $file = "$::bot_base_dir/infobot-news.txt";
217 &::ERROR("News: write: fileno NEWS exists, should never happen.");
221 # TODO: add commands to output file.
223 my($cc,$ci,$cu) = (0,0,0);
225 open(NEWS, ">$file");
226 foreach $chan (sort keys %::news) {
227 $c = scalar keys %{ $::news{$chan} };
232 foreach $item (sort keys %{ $::news{$chan} }) {
233 $c = scalar keys %{ $::news{$chan}{$item} };
237 print NEWS "$chan $item\n";
239 foreach $what (sort keys %{ $::news{$chan}{$item} }) {
240 print NEWS " $what: $::news{$chan}{$item}{$what}\n";
246 # TODO: show how many users we wrote down.
247 if (&::getChanConfList('newsKeepRead')) {
248 # old users are removed in newsFlush(), perhaps it should be
251 foreach $chan (sort keys %::newsuser) {
253 foreach (sort keys %{ $::newsuser{$chan} }) {
254 print NEWS "U $chan $_ $::newsuser{$chan}{$_}\n";
262 &::status("News: Wrote $ci items for $cc chans, $cu user cache.");
268 if (!defined $chan or !defined $str or $str =~ /^\s*$/) {
273 if (length $str > 64) {
274 &::notice($who, "That's not really an item (>64chars)");
278 if (exists $::news{$chan}{$str}{Time}) {
279 &::notice($who, "'$str' for $chan already exists!");
283 $::news{$chan}{$str}{Time} = time();
284 my $expire = &::getChanConfDefault('newsDefaultExpire',7, $chan);
285 $::news{$chan}{$str}{Expire} = time() + $expire*60*60*24;
286 $::news{$chan}{$str}{Author} = $::who; # case!
288 my $agestr = &::Time2String($::news{$chan}{$str}{Expire} - time() );
289 my $item = &newsS2N($str);
290 &::notice($who, "Added '\037$str\037' at [".gmtime(time).
291 "] by \002$::who\002 for item #\002$item\002.");
292 &::notice($who, "Now do 'news text $item <your_description>'");
293 &::notice($who, "This item will expire at \002".
294 gmtime($::news{$chan}{$str}{Expire})."\002 [$agestr from now] "
304 if (!defined $what) {
309 if ($what =~ /^\d+$/) {
310 my $count = scalar keys %{ $::news{$chan} };
312 &::notice($who, "No news for $chan.");
316 if ($what > $count or $what < 0) {
317 &::notice($who, "$what is out of range (max $count)");
321 $item = &getNewsItem($what);
322 $what = $item; # hack hack hack.
325 $_ = &getNewsItem($what); # hack hack hack.
326 $what = $_ if (defined $_);
328 if (!exists $::news{$chan}{$what}) {
330 foreach (keys %{ $::news{$chan} }) {
331 next unless (/\Q$what\E/);
335 if (!scalar @found) {
336 &::notice($who, "could not find $what.");
340 if (scalar @found > 1) {
341 &::notice($who, "too many matches for $what.");
346 &::DEBUG("news: del: str: guessed what => $what");
350 if (exists $::news{$chan}{$what}) {
352 $auth++ if ($::who eq $::news{$chan}{$what}{Author});
353 $auth++ if (&::IsFlag('o'));
356 # TODO: show when it'll expire.
357 &::notice($who, "Sorry, you cannot remove items; just let them expire on their own.");
361 &::notice($who, "ok, deleted '$what' from \002$chan\002...");
362 delete $::news{$chan}{$what};
364 &::notice($who, "error: not found $what in news for $chan.");
369 if (!scalar keys %{ $::news{$chan} }) {
370 &::notice($who, "No news for \002$chan\002.");
374 if (&::IsChanConf('newsKeepRead') > 0) {
375 my $x = $::newsuser{$chan}{$who};
377 if (defined $x and ($x == 0 or $x == -1)) {
378 &::DEBUG("news: not updating time for $who.");
380 if (!scalar keys %{ $::news{$chan} }) {
381 &::DEBUG("news: should not add $chan/$who to cache!");
384 $::newsuser{$chan}{$who} = time();
388 # ¬ice() breaks OPN :( - using msg() instead!
389 my $count = scalar keys %{ $::news{$chan} };
390 &::msg($who, "|==== News for \002$chan\002: ($count items)");
394 foreach (keys %{ $::news{$chan} }) {
395 my $t = $::news{$chan}{$_}{Time};
396 my $e = $::news{$chan}{$_}{Expire};
397 $newest = $t if ($t > $newest);
398 if ($e > 1 and $e < $expire) {
400 &::DEBUG("before newsS2N($_)");
402 &::DEBUG("after newsS2N($_) == $eno");
405 my $timestr = &::Time2String(time() - $newest);
406 &::msg($who, "|= Last updated $timestr ago.");
407 &::msg($who, " \037Num\037 \037Item ".(' 'x40)." \037");
409 # &::DEBUG("news: list: expire = $expire");
410 # &::DEBUG("news: list: eno = $eno");
413 foreach ( &getNewsAll() ) {
415 my $setby = $::news{$chan}{$subtopic}{Author};
416 my $chr = (exists $::News{$chan}{$subtopic}{Text}) ? '' : '*';
418 if (!defined $subtopic) {
419 &::DEBUG("news: warn: subtopic == undef.");
423 # TODO: show request stats aswell.
424 &::msg($who, sprintf("\002[\002%2d\002]\002%s %s",
425 $i, $chr, $subtopic));
429 my $z = $::newsuser{$who};
431 &::DEBUG("cache $who: $z");
433 &::DEBUG("cache: $who doesn't have newscache set.");
436 &::msg($who, "|= End of News.");
437 &::msg($who, "use 'news read <#>' or 'news read <keyword>'");
443 if (!defined $chan or !defined $str or $str =~ /^\s*$/) {
444 &::help('news read');
448 if (!scalar keys %{ $::news{$chan} }) {
449 &::notice($who, "No news for \002$chan\002.");
453 my $item = &getNewsItem($str);
454 if (!defined $item or !scalar keys %{ $::news{$chan}{$item} }) {
455 # TODO: numerical check.
456 if ($str =~ /^(\d+)[-, ](\d+)$/ or
457 $str =~ /^-(\d+)$/ or
458 $str =~ /^(\d+)-$/ or 0
460 &::notice($who, "We don't support multiple requests of news items yet. Sorry.");
464 &::notice($who, "No news item called '$str'");
468 if (!exists $::news{$chan}{$item}{Text}) {
469 &::notice($who, 'Someone forgot to add info to this news item');
473 my $t = gmtime( $::news{$chan}{$item}{Time} );
474 my $a = $::news{$chan}{$item}{Author};
475 my $text = $::news{$chan}{$item}{Text};
476 my $num = &newsS2N($item);
477 my $rwho = $::news{$chan}{$item}{Request_By} || $::who;
478 my $rcount = $::news{$chan}{$item}{Request_Count} || 0;
480 if (length $text < $::param{maxKeySize}) {
481 &::VERB("NEWS: Possible news->factoid redirection.",2);
482 my $f = &::getFactoid($text);
485 &::VERB("NEWS: ok, $text is factoid redirection.",2);
486 $f =~ s/^<REPLY>\s*//i; # anything else?
491 $_ = $::news{$chan}{$item}{'Expire'};
494 $e = sprintf("\037%s\037 [%s from now]",
496 &::Time2String($_ - time())
500 &::notice($who, "+- News \002$chan\002 #$num: $item");
501 &::notice($who, "| Added by $a at \037$t\037");
502 &::notice($who, "| Expire: $e") if (defined $e);
503 &::notice($who, $text);
504 &::notice($who, "| Requested \002$rcount\002 times, last by \002$rwho\002") if ($rcount and $rwho);
506 $::news{$chan}{$item}{'Request_By'} = $::who;
507 $::news{$chan}{$item}{'Request_Time'} = time();
508 $::news{$chan}{$item}{'Request_Count'}++;
512 my($item, $str) = split /\s+/, $_[0], 2;
514 if (!defined $item or $item eq '' or $str =~ /^\s*$/) {
519 my $news = &getNewsItem($item);
521 if (!defined $news) {
522 &::DEBUG("news: error: mod: news == undefined.");
525 my $nnews = $::news{$chan}{$news}{Text};
526 my $mod_news = $news;
527 my $mod_nnews = $nnews;
530 if ($str =~ m|^\s*s([/,#\|])(.+?)\1(.*?)\1([a-z]*);?\s*$|) {
531 my ($delim, $op, $np, $flags) = ($1,$2,$3,$4);
533 if ($flags !~ /^(g)?$/) {
534 &::notice($who, "error: Invalid flags to regex.");
538 ### TODO: use m### to make code safe!
539 # TODO: make code safer.
541 # TODO: use eval to deal with flags easily.
543 $done++ if (!$done and $mod_news =~ s/\Q$op\E/$np/);
544 $done++ if (!$done and $mod_nnews =~ s/\Q$op\E/$np/);
545 } elsif ($flags eq 'g') {
546 $done++ if ($mod_news =~ s/\Q$op\E/$np/g);
547 $done++ if ($mod_nnews =~ s/\Q$op\E/$np/g);
551 &::notice($who, "warning: regex not found in news.");
555 if ($mod_news ne $news) { # news item.
556 if (exists $::news{$chan}{$mod_news}) {
557 &::notice($who, "item '$mod_news' already exists.");
561 &::notice($who, "Moving item '$news' to '$mod_news' with SAR s/$op/$np/.");
562 foreach (keys %{ $::news{$chan}{$news} }) {
563 $::news{$chan}{$mod_news}{$_} = $::news{$chan}{$news}{$_};
564 delete $::news{$chan}{$news}{$_};
567 delete $::news{$chan}{$news};
570 if ($mod_nnews ne $nnews) { # news Text/Description.
571 &::notice($who, "Changing text for '$news' SAR s/$op/$np/.");
572 if ($mod_news ne $news) {
573 $::news{$chan}{$mod_news}{Text} = $mod_nnews;
575 $::news{$chan}{$news}{Text} = $mod_nnews;
581 &::notice($who, "error: that regex failed ;(");
585 &::notice($who, "error: Invalid regex. Try s/1/2/, s#3#4#...");
590 my($item, $what, $value);
592 if (!defined $args) {
593 &::DEBUG("news: set: args == NULL.");
597 $item = $1 if ($args =~ s/^(\S+)\s*//);
598 $what = $1 if ($args =~ s/^(\S+)\s*//);
606 my $news = &getNewsItem($item);
608 if (!defined $news) {
609 &::notice($who, "Could not find item '$item' substring or # in news list.");
613 # list all values for chan.
614 if (!defined $what or $what =~ /^\s*$/) {
615 &::msg($who, "set: you didn't fill me on the arguments! (what and values)");
620 my @elements = ('Expire','Text');
621 foreach (@elements) {
622 next unless ($what =~ /^$_$/i);
629 &::notice($who, "Invalid set. Try: @elements");
634 if (!defined $value or $value =~ /^\s*$/) {
635 &::msg($who, "set: you didn't fill me on the arguments! (value)");
639 if (!exists $::news{$chan}{$news}) {
640 &::notice($who, "news '$news' does not exist");
644 if ($what eq 'Expire') {
645 # TODO: use do_set().
648 my $plus = ($value =~ s/^\+//g);
649 while ($value =~ s/^(\d+)(\S*)\s*//) {
650 my($int,$unit) = ($1,$2);
651 $time += $int if ($unit =~ /^s(ecs?)?$/i);
652 $time += $int*60 if ($unit =~ /^m(in(utes?)?)?$/i);
653 $time += $int*60*60 if ($unit =~ /^h(ours?)?$/i);
654 $time += $int*60*60*24 if (!$unit or $unit =~ /^d(ays?)?$/i);
655 $time += $int*60*60*24*7 if ($unit =~ /^w(eeks?)?$/i);
656 $time += $int*60*60*24*30 if ($unit =~ /^mon(th)?$/i);
659 if ($value =~ s/^never$//i) {
666 # from creation of item.
667 $time += $::news{$chan}{$news}{Time};
670 if (!$time or ($value and $value !~ /^never$/i)) {
671 &::DEBUG("news: set: Expire... need to parse.");
672 &::msg($who, "hrm... couldn't parse that.");
677 &::notice($who, "Set never expire for \002$item\002." );
678 } elsif ($time < -1) {
679 &::DEBUG("news: time should never be negative ($time).");
682 &::notice($who, "Set expire for \002$item\002, to ".
683 gmtime($time) ." [".&::Time2String($time - time())."]" );
685 if (time() > $time) {
686 &::DEBUG("news: hrm... time() > $time, should expire.");
691 $::news{$chan}{$news}{Expire} = $time;
697 # &::DEBUG("news: who => '$who'");
698 my $author = $::news{$chan}{$news}{Author};
699 $auth++ if ($::who eq $author);
700 $auth++ if (&::IsFlag('o'));
701 if (!defined $author) {
702 &::DEBUG("news: news{$chan}{$news}{Author} is not defined! auth'd anyway");
703 $::news{$chan}{$news}{Author} = $::who;
709 # TODO: show when it'll expire.
710 &::notice($who, "Sorry, you cannot set items. (author $author owns it)");
714 # TODO: clean this up.
715 my $old = $::news{$chan}{$news}{$what};
717 &::DEBUG("news: old => $old.");
719 $::news{$chan}{$news}{$what} = $value;
720 &::notice($who, "Setting [$chan]/{$news}/<$what> to '$value'.");
724 my ($tchan, $flag) = @_;
726 # hack hack hack. fix later.
730 # TODO: if chan = undefined, guess.
731 # if (!exists $::news{$chan}) {
732 if (!exists $::channels{$chan}) {
733 &::notice($who, "invalid chan $chan") if ($flag);
737 my $t = $::newsuser{$chan}{$who};
739 # &::DEBUG("newsuser: $chan/$who == $t");
741 # &::DEBUG("newsuser: $chan/$who == undefined");
744 if (defined $t and ($t == 0 or $t == -1)) {
746 &::notice($who, "if you want to read news, try \002/msg $::ident news $chan\002 or \002/msg $::ident news $chan notify\002");
748 &::DEBUG("news: not displaying any new news for $who");
754 return if (&::IsChanConf('newsNotifyAll') <= 0);
756 # I don't understand this code ;)
757 $t = 1 if (!defined $t);
760 # &::msg($who, "News is disabled for $chan");
761 &::DEBUG("news: $chan: something went really wrong.");
766 foreach (keys %{ $::news{$chan} }) {
767 next if (!defined $t);
768 next if ($t > $::news{$chan}{$_}{Time});
770 # don't list new items if they don't have Text.
771 if (!exists $::news{$chan}{$_}{Text}) {
772 if (time() - $::news{$chan}{$_}{Time} > 60*60*24*3) {
773 &::DEBUG("deleting news{$chan}{$_} because it was too old and had no text info.");
774 delete $::news{$chan}{$_};
783 # !scalar @new, $flag
784 if (!scalar @new and $flag) {
785 &::notice($who, "no new news for $chan for $who.");
787 $::newsuser{$chan}{$who} = time();
791 # scalar @new, !$flag
792 my $unread = scalar @new;
793 my $total = scalar keys %{ $::news{$chan} };
794 if (!$flag && &::IsChanConf('newsTellUnread') <= 0) {
799 return unless ($unread);
801 # just a temporary measure not to flood ourself off the
802 # network with news until we get global notice() and msg()
804 if (time() - ($::cache{newsTime} || 0) < 5) {
805 &::status("news: not displaying latest notice to $who/$chan.");
809 $::cache{newsTime} = time();
810 my $reply = "There are unread news in $chan ($unread unread, $total total). /msg $::ident news $::chan latest";
811 $reply .= " If you don't want further news notification, /msg $::ident news unnotify" if ($unread == $total);
812 &::notice($who, $reply);
819 &::notice($who, "+==== New news for \002$chan\002 ($unread new; $total total):");
821 my $t = $::newsuser{$chan}{$who};
822 if (defined $t and $t > 1) {
823 my $timestr = &::Time2String( time() - $t );
824 &::notice($who, "|= Last time read $timestr ago");
834 for ($i=0; $i<=scalar(@sorted); $i++) {
835 my $news = $sorted[$i];
836 next unless (defined $news);
838 # my $age = time() - $::news{$chan}{$news}{Time};
839 my $msg = sprintf("\002[\002%2d\002]\002 %s", $i, $news);
840 ### $i, $_, &::Time2String($age)
841 $::conn->schedule(int((2+$i)/2), sub {
842 &::notice($who, $msg);
846 # TODO: implement throttling via schedule into ¬ice() / &msg().
847 $::conn->schedule(int((2+$i)/2), sub {
848 &::notice($who, "|= to read, do \002news $chan read <#>\002 or \002news $chan read <keyword>\002");
851 # lame hack to prevent dupes if we just ignore it.
852 my $x = $::newsuser{$chan}{$who};
853 if (defined $x and ($x == 0 or $x == -1)) {
854 &::DEBUG("news: not updating time for $who. (2)");
856 $::newsuser{$chan}{$who} = time();
867 foreach (keys %{ $::news{$chan} }) {
868 $time{ $::news{$chan}{$_}{Time} } = $_;
872 foreach (sort { $a <=> $b } keys %time) {
873 push(@items, $time{$_});
886 foreach (keys %{ $::news{$chan} }) {
887 my $t = $::news{$chan}{$_}{Time};
889 if (!defined $t or $t !~ /^\d+$/) {
890 &::DEBUG("news: warn: t is undefined for news{$chan}{$_}{Time}; removing item.");
891 delete $::news{$chan}{$_};
898 foreach (sort { $a <=> $b } keys %time) {
900 return $item if ($time{$_} eq $what);
903 &::DEBUG("newsS2N($what): failed...");
910 $what =~ s/^\#//; # '#1' for example.
913 foreach (keys %{ $::news{$chan} }) {
914 my $t = $::news{$chan}{$_}{Time};
916 if (!defined $t or $t !~ /^\d+$/) {
917 &::DEBUG("news: warn: t is undefined for news{$chan}{$_}{Time}; removing item.");
918 delete $::news{$chan}{$_};
925 # number to string resolution.
926 if ($what =~ /^\d+$/) {
927 foreach (sort { $a <=> $b } keys %time) {
929 return $time{$_} if ($item == $what);
933 # partial string to full string resolution
934 # in some cases, string->number resolution.
938 foreach (sort { $a <=> $b } keys %time) {
940 # $no = $item if ($time{$_} eq $what);
941 ## if ($time{$_} eq $what) {
946 push(@items, $time{$_}) if ($time{$_} =~ /\Q$what\E/i);
949 ## if (defined $no and !@items) {
950 ## &::DEBUG("news: string->number resolution: $what->$no.");
954 if (scalar @items > 1) {
955 &::DEBUG("news: Multiple matches, not guessing.");
956 &::notice($who, "Multiple matches, not guessing.");
961 # &::DEBUG("news: gNI: part_string->full_string: $what->$items[0]");
964 &::DEBUG("news: gNI: No match for '$what'");
969 &::ERROR("news: gNI: should not happen (what = $what)");
974 my($what,$value) = @_;
976 if (!defined $chan) {
977 &::DEBUG("news: do_set: chan not defined.");
981 if (!defined $what or $what =~ /^\s*$/) {
982 &::DEBUG("news: what $what is not defined.");
986 if (!defined $value or $value =~ /^\s*$/) {
987 &::DEBUG("news: value $value is not defined.");
991 &::TODO("news: do_set:");
995 &::DEBUG("News: stats called.");
996 &::msg($who, "check my logs/console.");
999 # total request count.
1000 foreach $chan (keys %::news) {
1001 foreach (keys %{ $::news{$chan} }) {
1002 $i += $::news{$chan}{$_}{Request_Count};
1005 &::DEBUG("news: stats: total request count => $i");
1008 # total user cached.
1009 foreach $chan (keys %::newsuser) {
1010 $i += $::newsuser{$chan}{$_};
1012 &::DEBUG("news: stats: total user cache => $i");
1015 # average latest time read.
1017 foreach $chan (keys %::newsuser) {
1018 $i += $t - $::newsuser{$chan}{$_};
1019 &::DEBUG(" i = $i");
1022 &::DEBUG("news: stats: average latest time read: total time: $i");
1023 &::DEBUG("news: ... count: $j");
1024 &::DEBUG("news: average: ".sprintf("%.02f", $i/($j||1))." sec/user");
1028 sub AUTOLOAD { &::AUTOLOAD(@_); }
1032 # vim:ts=4:sw=4:expandtab:tw=80