2 # Irc.pl: IRC core stuff.
5 # NOTE: Based on code by Kevin Lenzo & Patrick Cole (c) 1997
11 no strict 'subs'; # IN/STDIN
13 use vars qw(%floodjoin %nuh %dcc %cache %conns %channels %param %mask
14 %chanconf %orig %ircPort %ircstats %last %netsplit);
15 use vars qw($irc $nickserv $conn $msgType $who $talkchannel
16 $addressed $postprocess);
17 use vars qw($notcount $nottime $notsize $msgcount $msgtime $msgsize
18 $pubcount $pubtime $pubsize);
19 use vars qw($b_blue $ob);
20 use vars qw(@ircServers);
27 # It's probably closer to 510, but let's be cautious until we calculate it extensively.
30 # Keep track of last time we displayed Chans: to avoid spam in logs
31 my $lastChansTime = 0;
38 while ( my $host = shift @ircServers ) {
40 # JUST IN CASE. irq was complaining about this.
41 if ( $lastrun == time() ) {
42 &DEBUG('ircloop: hrm... lastrun == time()');
48 if ( !defined $host ) {
49 &DEBUG('ircloop: ircServers[x] = NULL.');
53 next unless ( exists $ircPort{$host} );
55 my $retval = &irc( $host, $ircPort{$host} );
56 next unless ( defined $retval and $retval == 0 );
59 if ( $error % 3 == 0 and $error != 0 ) {
60 &status('IRC: Could not connect.');
65 if ( $error >= 3 * 2 ) {
66 &status('IRC: cannot connect to any IRC servers; stopping.');
72 &status('IRC: ok, done one cycle of IRC servers; trying again.');
79 my ( $server, $port ) = @_;
83 # TODO: move all this to an sql table
84 my $iaddr = inet_aton($server);
85 my $paddr = sockaddr_in( $port, $iaddr );
86 my $proto = getprotobyname('tcp');
93 if ( $server =~ /\D$/ ) {
94 my $packed = scalar( gethostbyname($server) );
96 if ( !defined $packed ) {
97 &status(" cannot resolve $server.");
101 $resolve = inet_ntoa($packed);
102 ### warning in Sys/Hostname line 78???
103 ### caused inside Net::IRC?
107 Nick => $param{'ircNick'},
110 Ircname => $param{'ircName'},
112 $args{'LocalAddr'} = $param{'ircHost'} if ( $param{'ircHost'} );
113 $args{'Password'} = $param{'ircPasswd'} if ( $param{'ircPasswd'} );
115 foreach my $mynick ( sort split ',', $param{'ircNick'} ) {
116 if (!defined $conns{$mynick}) {
117 &status("Connecting to port $port of server $server ($resolve) as $mynick ...");
118 $args{'Nick'} = $mynick;
119 $args{'Username'} = $mynick;
120 $conns{$mynick} = $irc->newconn(%args);
121 # FIXME: connections should happen in the background and get retried per nick
123 if ( !defined $param{'ircHost'} and !defined $conns{$mynick} ) {
124 &ERROR("IRC: $mynick @ $server connection failed.");
125 &ERROR("add \"set ircHost 0.0.0.0\" to your config. If that does not work");
126 &ERROR('Please check /etc/hosts to see if you have a localhost line like:');
127 &ERROR('127.0.0.1 localhost localhost');
128 &ERROR('If this is still a problem, please contact the maintainer.');
130 if (defined $conns{$mynick}) {
131 $conns{$mynick}->maxlinelen($maxlinelen);
134 $conns{$mynick}->add_global_handler( 'caction', \&on_action );
135 $conns{$mynick}->add_global_handler( 'cdcc', \&on_dcc );
136 $conns{$mynick}->add_global_handler( 'cping', \&on_ping );
137 $conns{$mynick}->add_global_handler( 'crping', \&on_ping_reply );
138 $conns{$mynick}->add_global_handler( 'cversion', \&on_version );
139 $conns{$mynick}->add_global_handler( 'crversion', \&on_crversion );
140 $conns{$mynick}->add_global_handler( 'dcc_open', \&on_dcc_open );
141 $conns{$mynick}->add_global_handler( 'dcc_close', \&on_dcc_close );
142 $conns{$mynick}->add_global_handler( 'chat', \&on_chat );
143 $conns{$mynick}->add_global_handler( 'msg', \&on_msg );
144 $conns{$mynick}->add_global_handler( 'public', \&on_public );
145 $conns{$mynick}->add_global_handler( 'join', \&on_join );
146 $conns{$mynick}->add_global_handler( 'part', \&on_part );
147 $conns{$mynick}->add_global_handler( 'topic', \&on_topic );
148 $conns{$mynick}->add_global_handler( 'invite', \&on_invite );
149 $conns{$mynick}->add_global_handler( 'kick', \&on_kick );
150 $conns{$mynick}->add_global_handler( 'mode', \&on_mode );
151 $conns{$mynick}->add_global_handler( 'nick', \&on_nick );
152 $conns{$mynick}->add_global_handler( 'quit', \&on_quit );
153 $conns{$mynick}->add_global_handler( 'notice', \&on_notice );
154 $conns{$mynick}->add_global_handler( 'whoischannels', \&on_whoischannels );
155 $conns{$mynick}->add_global_handler( 'useronchannel', \&on_useronchannel );
156 $conns{$mynick}->add_global_handler( 'whois', \&on_whois );
157 $conns{$mynick}->add_global_handler( 'other', \&on_other );
158 $conns{$mynick}->add_global_handler( 'disconnect', \&on_disconnect );
159 $conns{$mynick}->add_global_handler( [ 251, 252, 253, 254, 255 ], \&on_init );
161 # $conns{$mynick}->add_global_handler(302, \&on_init); # userhost
162 $conns{$mynick}->add_global_handler( 303, \&on_ison ); # notify.
163 $conns{$mynick}->add_global_handler( 315, \&on_endofwho );
164 $conns{$mynick}->add_global_handler( 422, \&on_endofwho ); # nomotd.
165 $conns{$mynick}->add_global_handler( 324, \&on_modeis );
166 $conns{$mynick}->add_global_handler( 333, \&on_topicinfo );
167 $conns{$mynick}->add_global_handler( 352, \&on_who );
168 $conns{$mynick}->add_global_handler( 353, \&on_names );
169 $conns{$mynick}->add_global_handler( 366, \&on_endofnames );
170 $conns{$mynick}->add_global_handler( "001", \&on_connected )
172 $conns{$mynick}->add_global_handler( 433, \&on_nick_taken );
173 $conns{$mynick}->add_global_handler( 439, \&on_targettoofast );
175 # for proper joinnextChan behaviour
176 $conns{$mynick}->add_global_handler( 471, \&on_chanfull );
177 $conns{$mynick}->add_global_handler( 473, \&on_inviteonly );
178 $conns{$mynick}->add_global_handler( 474, \&on_banned );
179 $conns{$mynick}->add_global_handler( 475, \&on_badchankey );
180 $conns{$mynick}->add_global_handler( 443, \&on_useronchan );
182 # end of handler stuff.
189 # change internal timeout value for scheduler.
190 $irc->{_timeout} = 10; # how about 60?
191 # Net::IRC debugging.
194 $ircstats{'Server'} = "$server:$port";
196 # works? needs to actually do something
197 # should likely listen on a tcp port instead
198 #$irc->addfh(STDIN, \&on_stdin, 'r');
200 &status('starting main loop');
205 ######################################################################
206 ######## IRC ALIASES IRC ALIASES IRC ALIASES IRC ALIASES #######
207 ######################################################################
213 # slow down a bit if traffic is 'high'.
214 # need to take into account time of last message sent.
215 if ( $last{buflen} > 256 and length($buf) > 256 ) {
219 $conn->sl($buf) if ( &whatInterface() =~ /IRC/ );
221 $last{buflen} = length($buf);
226 my $mynick = $conn->nick();
227 if ( !defined $msg ) {
229 &WARN("say: msg == $msg.");
233 if ( &getChanConf( 'silent', $talkchannel )
234 and not( &IsFlag('s') and &verifyUser( $who, $nuh{ lc $who } ) ) )
236 &DEBUG("say: silent in $talkchannel, not saying $msg");
243 elsif ( $postprocess = &getChanConf( 'postprocess', $talkchannel ) ) {
244 &DEBUG("say: $postprocess $msg");
245 &parseCmdHook( $postprocess . ' ' . $msg );
250 &status("<$mynick/$talkchannel> $msg");
252 return unless ( &whatInterface() =~ /IRC/ );
254 $msg = 'zero' if ( $msg =~ /^0+$/ );
258 if ( $t == $pubtime ) {
260 $pubsize += length $msg;
262 my $i = &getChanConfDefault( 'sendPublicLimitLines', 3, $chan );
263 my $j = &getChanConfDefault( 'sendPublicLimitBytes', 1000, $chan );
265 if ( ( $pubcount % $i ) == 0 and $pubcount ) {
268 elsif ( $pubsize > $j ) {
277 $pubsize = length $msg;
280 $conn->privmsg( $talkchannel, $msg );
284 my ( $nick, $msg ) = @_;
285 if ( !defined $nick ) {
286 &ERROR('msg: nick == NULL.');
290 if ( !defined $msg ) {
292 &WARN("msg: msg == $msg.");
296 # some say() end up here (eg +help)
297 if ( &getChanConf( 'silent', $nick )
298 and not( &IsFlag('s') and &verifyUser( $who, $nuh{ lc $who } ) ) )
300 &DEBUG("msg: silent in $nick, not saying $msg");
304 &status(">$nick< $msg");
306 return unless ( &whatInterface() =~ /IRC/ );
309 if ( $t == $msgtime ) {
311 $msgsize += length $msg;
313 my $i = &getChanConfDefault( 'sendPrivateLimitLines', 3, $chan );
314 my $j = &getChanConfDefault( 'sendPrivateLimitBytes', 1000, $chan );
315 if ( ( $msgcount % $i ) == 0 and $msgcount ) {
318 elsif ( $msgsize > $j ) {
327 $msgsize = length $msg;
330 $conn->privmsg( $nick, $msg );
333 # Usage: &action(nick || chan, txt);
335 my $mynick = $conn->nick();
336 my ( $target, $txt ) = @_;
337 if ( !defined $txt ) {
338 &WARN('action: txt == NULL.');
342 if ( &getChanConf( 'silent', $target )
343 and not( &IsFlag('s') and &verifyUser( $who, $nuh{ lc $who } ) ) )
345 &DEBUG("action: silent in $target, not doing $txt");
349 if ( length $txt > 480 ) {
350 &status('action: txt too long; truncating.');
351 chop($txt) while ( length $txt > 480 );
354 &status("* $mynick/$target $txt");
355 $conn->me( $target, $txt );
358 # Usage: ¬ice(nick || chan, txt);
360 my ( $target, $txt ) = @_;
361 if ( !defined $txt ) {
362 &WARN('notice: txt == NULL.');
366 &status("-$target- $txt");
370 if ( $t == $nottime ) {
372 $notsize += length $txt;
374 my $i = &getChanConfDefault( 'sendNoticeLimitLines', 3, $chan );
375 my $j = &getChanConfDefault( 'sendNoticeLimitBytes', 1000, $chan );
377 if ( ( $notcount % $i ) == 0 and $notcount ) {
380 elsif ( $notsize > $j ) {
389 $notsize = length $txt;
392 $conn->notice( $target, $txt );
396 my ( $txt, $flag ) = @_;
398 ### FIXME: flag not supported yet.
400 foreach ( keys %{ $dcc{'CHAT'} } ) {
401 $conn->privmsg( $dcc{'CHAT'}{$_}, $txt );
406 ### perform commands.
409 # Usage: &performReply($reply);
413 if ( !defined $reply or $reply =~ /^\s*$/ ) {
414 &DEBUG('performReply: reply == NULL.');
418 $reply =~ /([\.\?\s]+)$/;
420 # FIXME need real throttling....
421 if ( length($reply) > $maxlinelen - 30 ) {
422 $reply = substr( $reply, 0, $maxlinelen - 33 );
423 $reply =~ s/ [^ ]*?$/ .../;
425 &checkMsgType($reply);
427 if ( $msgType eq 'public' ) {
428 if ( rand() < 0.5 or $reply =~ /[\.\?]$/ ) {
429 $reply = "$orig{who}: " . $reply;
432 $reply = "$reply, " . $orig{who};
437 elsif ( $msgType eq 'private' ) {
438 if ( rand() > 0.5 ) {
439 $reply = "$reply, " . $orig{who};
441 &msg( $who, $reply );
444 elsif ( $msgType eq 'chat' ) {
445 if ( !exists $dcc{'CHAT'}{$who} ) {
446 &VERB( "pSR: dcc{'CHAT'}{$who} does not exist.", 2 );
449 $conn->privmsg( $dcc{'CHAT'}{$who}, $reply );
453 &ERROR("PR: msgType invalid? ($msgType).");
458 sub performAddressedReply {
459 return unless ($addressed);
463 # Usage: &performStrictReply($reply);
464 sub performStrictReply {
467 # FIXME need real throttling....
468 if ( length($reply) > $maxlinelen - 30 ) {
469 $reply = substr( $reply, 0, $maxlinelen - 33 );
470 $reply =~ s/ [^ ]*?$/ .../;
472 &checkMsgType($reply);
474 if ( $msgType eq 'private' ) {
475 &msg( $who, $reply );
477 elsif ( $msgType eq 'public' ) {
480 elsif ( $msgType eq 'chat' ) {
481 &dccsay( lc $who, $reply );
484 &ERROR("pSR: msgType invalid? ($msgType).");
489 my ( $who, $reply ) = @_;
491 if ( !defined $reply or $reply =~ /^\s*$/ ) {
492 &WARN('dccsay: reply == NULL.');
496 if ( !exists $dcc{'CHAT'}{$who} ) {
497 &VERB( "pSR: dcc{'CHAT'}{$who} does not exist. (2)", 2 );
501 &status("=>$who<= $reply"); # dcc chat.
502 $conn->privmsg( $dcc{'CHAT'}{$who}, $reply );
509 foreach $type ( keys %dcc ) {
510 &FIXME("dcc_close: $who");
511 my @who = grep /^\Q$who\E$/i, keys %{ $dcc{$type} };
512 next unless ( scalar @who );
514 &DEBUG("dcc_close... close $who!");
519 my ( $chan, $key ) = @_;
520 $key ||= &getChanConf( 'chankey', $chan );
522 my $mynick = $conn->nick();
524 # forgot for about 2 years to implement channel keys when moving
525 # over to Net::IRC...
527 # hopefully validChan is right.
528 if ( &validChan($chan) ) {
529 &status("join: already on $chan?");
533 &status("$mynick joining $b_blue$chan $key$ob");
535 return if ( $conn->join( $chan, $key ) );
536 return if ( &validChan($chan) );
538 &DEBUG('joinchan: join failed. trying connect!');
549 next if ( $chan eq '' );
550 $chan =~ tr/A-Z/a-z/; # lowercase.
552 if ( $chan !~ /^$mask{chan}$/ ) {
553 &WARN("part: chan is invalid ($chan)");
557 &status("parting $chan");
558 if ( !&validChan($chan) ) {
559 &WARN("part: not on $chan; doing anyway");
566 # deletion of $channels{chan} is done in &entryEvt().
571 my ( $chan, @modes ) = @_;
572 my $modes = join( ' ', @modes );
574 if ( &validChan($chan) == 0 ) {
575 &ERROR("mode: invalid chan => '$chan'.");
579 &DEBUG("mode: MODE $chan $modes");
581 # should move to use Net::IRC's $conn->mode()... but too lazy.
582 rawout("MODE $chan $modes");
586 my ( $chan, @who ) = @_;
587 my $os = 'o' x scalar(@who);
589 &mode( $chan, "+$os @who" );
593 my ( $chan, @who ) = @_;
594 my $os = 'o' x scalar(@who);
596 &mode( $chan, "-$os " . @who );
600 my ( $nick, $chan, $msg ) = @_;
601 my (@chans) = ( $chan eq '' ) ? ( keys %channels ) : lc($chan);
602 my $mynick = $conn->nick();
604 if ( $chan ne '' and &validChan($chan) == 0 ) {
605 &ERROR("kick: invalid channel $chan.");
609 $nick =~ tr/A-Z/a-z/;
611 foreach $chan (@chans) {
612 if ( !&IsNickInChan( $nick, $chan ) ) {
613 &status("kick: $nick is not on $chan.") if ( scalar @chans == 1 );
617 if ( !exists $channels{$chan}{o}{$mynick} ) {
618 &status("kick: do not have ops on $chan :(");
622 &status("Kicking $nick from $chan.");
623 $conn->kick( $chan, $nick, $msg );
628 my ( $mask, $chan ) = @_;
629 my (@chans) = ( $chan =~ /^\*?$/ ) ? ( keys %channels ) : lc($chan);
630 my $mynick = $conn->nick();
633 if ( $chan !~ /^\*?$/ and &validChan($chan) == 0 ) {
634 &ERROR("ban: invalid channel $chan.");
638 foreach $chan (@chans) {
639 if ( !exists $channels{$chan}{o}{$mynick} ) {
640 &status("ban: do not have ops on $chan :(");
644 &status("Banning $mask from $chan.");
645 &rawout("MODE $chan +b $mask");
653 my ( $mask, $chan ) = @_;
654 my (@chans) = ( $chan =~ /^\*?$/ ) ? ( keys %channels ) : lc($chan);
655 my $mynick = $conn->nick();
658 &DEBUG("unban: mask = $mask, chan = @chans");
660 foreach $chan (@chans) {
661 if ( !exists $channels{$chan}{o}{$mynick} ) {
662 &status("unBan: do not have ops on $chan :(");
666 &status("Removed ban $mask from $chan.");
667 &rawout("MODE $chan -b $mask");
676 if ( defined $conn ) {
677 &status( 'QUIT ' . $conn->nick() . " has quit IRC ($quitmsg)" );
678 $conn->quit($quitmsg);
681 &WARN('quit: could not quit!');
687 my $mynick = $conn->nick();
689 if ( !defined $newnick ) {
690 &ERROR('nick: nick == NULL.');
694 if ( !defined $mynick ) {
695 &WARN('nick: mynick == NULL.');
700 $bad++ if ( exists $nuh{$newnick} );
701 $bad++ if ( &IsNickInAnyChan($newnick) );
704 &WARN( "Nick: not going to try to change from $mynick to $newnick. ["
708 # hrm... over time we lose track of our own nick.
712 if ( $newnick =~ /^$mask{nick}$/ ) {
713 &status("nick: Changing nick from $mynick to $newnick");
715 # ->nick() will NOT change cause we are using rawout?
716 &rawout("NICK $newnick");
719 &DEBUG("nick: failed... why oh why (mynick=$mynick, newnick=$newnick)");
724 my ( $who, $chan ) = @_;
726 # TODO: check if $who or $chan are invalid.
728 $conn->invite( $who, $chan );
732 # Channel related functions...
735 # Usage: &joinNextChan();
739 my $mynick = $conn->nick();
740 my @join = getJoinChans(1);
742 if ( scalar @join ) {
743 my $chan = shift @join;
746 if ( my $i = scalar @join ) {
747 &status("joinNextChan: $mynick $i chans to join.");
754 if ( exists $cache{joinTime} ) {
755 my $delta = time() - $cache{joinTime} - 5;
756 my $timestr = &Time2String($delta);
758 # FIXME: @join should be @in instead (hacked to 10)
759 #my $rate = sprintf('%.1f', $delta / @in);
760 my $rate = sprintf( '%.1f', $delta / 10 );
761 delete $cache{joinTime};
763 &status("time taken to join all chans: $timestr; rate: $rate sec/join");
766 # chanserv check: global channels, in case we missed one.
767 foreach ( &ChanConfList('chanServ_ops') ) {
772 # Usage: &getNickInChans($nick);
777 foreach ( keys %channels ) {
778 next unless ( grep /^\Q$nick\E$/i, keys %{ $channels{$_}{''} } );
785 # Usage: &getNicksInChan($chan);
790 return keys %{ $channels{$chan}{''} };
794 my ( $nick, $chan ) = @_;
796 $chan =~ tr/A-Z/a-z/; # not lowercase unfortunately.
798 if ( $chan =~ /^$/ ) {
799 &DEBUG('INIC: chan == NULL.');
803 if ( &validChan($chan) == 0 ) {
804 &ERROR("INIC: invalid channel $chan.");
808 if ( grep /^\Q$nick\E$/i, keys %{ $channels{$chan}{''} } ) {
812 foreach ( keys %channels ) {
813 next unless (/[A-Z]/);
814 &DEBUG('iNIC: hash channels contains mixed cased chan!!!');
820 sub IsNickInAnyChan {
824 foreach $chan ( keys %channels ) {
825 next unless ( grep /^\Q$nick\E$/i, keys %{ $channels{$chan}{''} } );
831 # Usage: &validChan($chan);
834 # TODO: use $c instead?
837 if ( !defined $chan or $chan =~ /^\s*$/ ) {
841 if ( lc $chan ne $chan ) {
842 &WARN("validChan: lc chan != chan. ($chan); fixing.");
843 $chan =~ tr/A-Z/a-z/;
846 # it's possible that this check creates the hash if empty.
847 if ( defined $channels{$chan} or exists $channels{$chan} ) {
848 if ( $chan =~ /^_?default$/ ) {
850 # &WARN('validC: chan cannot be _default! returning 0!');
862 # Usage: &delUserInfo($nick,@chans);
864 my ( $nick, @chans ) = @_;
867 foreach $chan (@chans) {
868 foreach $mode ( keys %{ $channels{$chan} } ) {
871 next unless ( exists $channels{$chan}{$mode}{$nick} );
873 delete $channels{$chan}{$mode}{$nick};
881 delete $channels{$chan};
888 $cache{joinTime} = time();
893 # $show should contain the min number of seconds between display
894 # of the Chans: status line. Use 0 to disable
901 # Display 'Chans:' only if more than $show seconds since last display
902 if ( time() - $lastChansTime > $show ) {
903 $lastChansTime = time();
906 $show = 0; # Don't display since < 15min since last
909 # can't join any if not connected
910 return @join if ( !$conn );
912 my $nick = $conn->nick();
914 foreach ( keys %chanconf ) {
915 next if ( $_ eq '_default' );
918 my $val = $chanconf{$_}{autojoin};
920 if ( defined $val ) {
921 $skip++ if ( $val eq '0' );
924 # convert old +autojoin to autojoin <nick>
926 $chanconf{$_}{autojoin} = $val;
928 $skip++ if ( lc $val ne lc $nick );
938 if ( defined $channels{$_} or exists $channels{$_} ) {
948 $str .= ' in:' . join( ',', sort @in ) if scalar @in;
949 $str .= ' skip:' . join( ',', sort @skip ) if scalar @skip;
950 $str .= ' join:' . join( ',', sort @join ) if scalar @join;
952 &status("Chans: ($nick)$str") if ($show);
959 # &DEBUG('closeDCC called.');
962 foreach $type ( keys %dcc ) {
963 next if ( $type ne uc($type) );
966 foreach $nick ( keys %{ $dcc{$type} } ) {
967 next unless ( defined $nick );
968 &status("DCC CHAT: closing DCC $type to $nick.");
969 next unless ( defined $dcc{$type}{$nick} );
971 my $ref = $dcc{$type}{$nick};
972 &dccsay( $nick, "bye bye, $nick" ) if ( $type =~ /^chat$/i );
973 $dcc{$type}{$nick}->close();
974 delete $dcc{$type}{$nick};
975 &DEBUG("after close for $nick");
982 my ( $who, $chan, $userhost ) = @_;
984 return unless ( &IsChanConf('joinfloodCheck') > 0 );
986 if ( exists $netsplit{ lc $who } ) { # netsplit join.
987 &DEBUG("joinfloodCheck: $who was in netsplit; not checking.");
990 if ( exists $floodjoin{$chan}{$who}{Time} ) {
991 &WARN("floodjoin{$chan}{$who} already exists?");
994 $floodjoin{$chan}{$who}{Time} = time();
995 $floodjoin{$chan}{$who}{Host} = $userhost;
998 foreach ( keys %floodjoin ) {
1000 my $count = scalar keys %{ $floodjoin{$c} };
1001 next unless ( $count > 5 );
1002 &DEBUG("joinflood: count => $count");
1005 foreach ( keys %{ $floodjoin{$c} } ) {
1006 my $t = $floodjoin{$c}{$_}{Time};
1007 next unless ( defined $t );
1011 &DEBUG("joinflood: time => $time");
1014 &DEBUG("joinflood: new time => $time");
1020 foreach $chan ( keys %floodjoin ) {
1021 foreach $who ( keys %{ $floodjoin{$chan} } ) {
1022 my $t = $floodjoin{$chan}{$who}{Time};
1023 next unless ( defined $t );
1025 my $delta = $time - $t;
1026 next unless ( $delta > 10 );
1028 delete $floodjoin{$chan}{$who};
1033 &DEBUG("joinfloodCheck: $delete deleted.") if ($delete);
1039 if ( exists $nuh{$n} ) {
1040 return &makeHostMask( $nuh{$n} );
1043 $cache{on_who_Hack} = 1;
1050 # vim:ts=4:sw=4:expandtab:tw=80