From da2ed7b6854ff93ce36a8d0ce99773b9528886d6 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 5 Jun 2004 07:34:49 +0000 Subject: [PATCH] fixed syntax error, added /SERVER output --- irc/rc2irc.php | 2 +- irc/rcdumper.php | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) 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}"; -- 2.20.1