Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/245468

Change subject: Use irc2go for irc channel count
......................................................................

Use irc2go for irc channel count

I have just suggested to petan to include
the channel member count somewhere in the webservice
of wm-bot which resides in #wikidata.

Once this has been done we can use that count!

Change-Id: I38dd89d737c8c8c651b4694dd719141c20e6edb3
---
M src/social/irc/generate.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/limn-wikidata-data 
refs/changes/68/245468/1

diff --git a/src/social/irc/generate.php b/src/social/irc/generate.php
index aa84002..9200930 100644
--- a/src/social/irc/generate.php
+++ b/src/social/irc/generate.php
@@ -28,9 +28,9 @@
 
        private function getIrcChannelMembers() {
                echo "Getting irc channel members\n";
-               $data = $this->curlGet( 
'http://ircindexer.net/chan_stats1.php?network=freenode&channel=wikidata' );
-               preg_match_all( '/\d+/', $data, $matches );
-               return $matches[0][0];
+               $data = $this->curlGet( 
'http://en.irc2go.com/webchat/?net=freenode&room=wikidata' );
+               preg_match_all( '/(\d+) users/', $data, $matches );
+               return $matches[1][0];
        }
 
        private function curlGet( $url ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/245468
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I38dd89d737c8c8c651b4694dd719141c20e6edb3
Gerrit-PatchSet: 1
Gerrit-Project: analytics/limn-wikidata-data
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to