r107582 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107581‎ | r107582 | r107583 >
Date:17:20, 29 December 2011
Author:petrb
Status:deferred
Tags:
Comment:
inserted test wiki if someone knew channel for meta, feel free to insert it as well as any other wiki
Modified paths:
  • /trunk/tools/wmib/Core.cs (modified) (history)
  • /trunk/tools/wmib/RClogs.cs (modified) (history)

Diff [purge]

Index: trunk/tools/wmib/Core.cs
@@ -1397,3 +1397,16 @@
13981398 }
13991399 }
14001400 }
 1401+on xx)
 1402+ {
 1403+ handleException(xx, channel);
 1404+ }
 1405+ }
 1406+ }
 1407+ public static int Disconnect()
 1408+ {
 1409+ wd.Flush();
 1410+ return 0;
 1411+ }
 1412+ }
 1413+}
Index: trunk/tools/wmib/RClogs.cs
@@ -43,10 +43,22 @@
4444 }
4545 }
4646
 47+ /// <summary>
 48+ /// List of pages
 49+ /// </summary>
4750 private List<IWatch> pages = new List<IWatch>();
 51+ /// <summary>
 52+ /// Wiki
 53+ /// </summary>
4854 public static List<wiki> wikiinfo = new List<wiki>();
 55+ /// <summary>
 56+ /// Channels
 57+ /// </summary>
4958 private static List<string> channels;
5059 private static List<RecentChanges> rc = new List<RecentChanges>();
 60+ /// <summary>
 61+ /// Stream reader
 62+ /// </summary>
5163 private static StreamReader RD;
5264 private static string channeldata = variables.config + "/feed";
5365 public static StreamWriter WD;
@@ -69,6 +81,12 @@
7082 rc.Add(this);
7183 }
7284
 85+ /// <summary>
 86+ /// New channel to watch by a bot
 87+ /// </summary>
 88+ /// <param name="target">Object to send output to</param>
 89+ /// <param name="name">Name of wiki</param>
 90+ /// <returns></returns>
7391 public static bool InsertChannel(config.channel target, string name)
7492 {
7593 wiki web = null;
@@ -101,6 +119,12 @@
102120 return true;
103121 }
104122
 123+ /// <summary>
 124+ /// Remove
 125+ /// </summary>
 126+ /// <param name="target">Object to get output back to</param>
 127+ /// <param name="WikiName">Name of site</param>
 128+ /// <returns></returns>
105129 public static bool DeleteChannel(config.channel target, string WikiName)
106130 {
107131 wiki W = null;
@@ -133,6 +157,9 @@
134158 return true;
135159 }
136160
 161+ /// <summary>
 162+ /// Connect to wm irc
 163+ /// </summary>
137164 public static void Connect()
138165 {
139166 try
@@ -302,7 +329,8 @@
303330 wikiinfo.Add(new wiki("#it.wikipedia", "https://fr.wikipedia.org/w/index.php", "it_wikipedia"));
304331 wikiinfo.Add(new wiki("#nl.wikipedia", "https://fr.wikipedia.org/w/index.php", "nl_wikipedia"));
305332 wikiinfo.Add(new wiki("#ja.wikipedia", "https://fr.wikipedia.org/w/index.php", "ja_wikipedia"));
306 - wikiinfo.Add(new wiki("#mediawiki.wikipedia", "https://www.mediawiki.org/w/index.php", "mediawiki"));
 333+ wikiinfo.Add(new wiki("#mediawiki.wikipedia", "https://www.mediawiki.org/w/index.php", "mediawiki"));
 334+ wikiinfo.Add(new wiki("#test.wikipedia", "https://test.wikipedia.org/w/index.php", "test_wikipedia"));
307335 return 0;
308336 }
309337

Status & tagging log