From: Tim Starling Date: Sat, 5 Jun 2004 07:34:49 +0000 (+0000) Subject: fixed syntax error, added /SERVER output X-Git-Tag: 1.5.0alpha1~3029 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=da2ed7b6854ff93ce36a8d0ce99773b9528886d6;p=lhc%2Fweb%2Fwiklou.git fixed syntax error, added /SERVER output --- diff --git a/irc/rc2irc.php b/irc/rc2irc.php index 811a01f4e1..2422687f1b 100644 --- a/irc/rc2irc.php +++ b/irc/rc2irc.php @@ -2,7 +2,7 @@ $ircNick = "wikipedia_rc"; $rooms = array("en" => 1, "fr" => 1, "de" => 1); -$ircServer = "irc.freenode.net" +$ircServer = "irc.freenode.net"; $ircSockName = "tcp://$ircServer"; $ircPort = 6667; $minDelay = 0.5; diff --git a/irc/rcdumper.php b/irc/rcdumper.php index 11555a2cf4..0c80775894 100644 --- a/irc/rcdumper.php +++ b/irc/rcdumper.php @@ -1,12 +1,13 @@ rc_timestamp; +$serverCount = 0; while (1) { $res = wfQuery( "SELECT * FROM recentchanges WHERE rc_timestamp>'$oldTimestamp' ORDER BY rc_timestamp", DB_READ ); $rowIndex = 0; while ( $row = wfFetchObject( $res ) ) { + if ( ++$serverCount % 20 == 0 ) { + print "/server irc.freenode.net\n"; + } $ns = $wgLang->getNsText( $row->rc_namespace ) ; if ( $ns ) { $title = "$ns:{$row->rc_title}";