Index: trunk/tools/wmib/Core.cs |
— | — | @@ -1397,3 +1397,16 @@ |
1398 | 1398 | } |
1399 | 1399 | } |
1400 | 1400 | } |
| 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 @@ |
44 | 44 | } |
45 | 45 | } |
46 | 46 | |
| 47 | + /// <summary>
|
| 48 | + /// List of pages
|
| 49 | + /// </summary> |
47 | 50 | private List<IWatch> pages = new List<IWatch>(); |
| 51 | + /// <summary>
|
| 52 | + /// Wiki
|
| 53 | + /// </summary> |
48 | 54 | public static List<wiki> wikiinfo = new List<wiki>(); |
| 55 | + /// <summary>
|
| 56 | + /// Channels
|
| 57 | + /// </summary> |
49 | 58 | private static List<string> channels; |
50 | 59 | private static List<RecentChanges> rc = new List<RecentChanges>(); |
| 60 | + /// <summary>
|
| 61 | + /// Stream reader
|
| 62 | + /// </summary> |
51 | 63 | private static StreamReader RD; |
52 | 64 | private static string channeldata = variables.config + "/feed"; |
53 | 65 | public static StreamWriter WD; |
— | — | @@ -69,6 +81,12 @@ |
70 | 82 | rc.Add(this); |
71 | 83 | } |
72 | 84 | |
| 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> |
73 | 91 | public static bool InsertChannel(config.channel target, string name) |
74 | 92 | { |
75 | 93 | wiki web = null; |
— | — | @@ -101,6 +119,12 @@ |
102 | 120 | return true; |
103 | 121 | } |
104 | 122 | |
| 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> |
105 | 129 | public static bool DeleteChannel(config.channel target, string WikiName) |
106 | 130 | { |
107 | 131 | wiki W = null; |
— | — | @@ -133,6 +157,9 @@ |
134 | 158 | return true; |
135 | 159 | } |
136 | 160 | |
| 161 | + /// <summary>
|
| 162 | + /// Connect to wm irc
|
| 163 | + /// </summary> |
137 | 164 | public static void Connect() |
138 | 165 | { |
139 | 166 | try |
— | — | @@ -302,7 +329,8 @@ |
303 | 330 | wikiinfo.Add(new wiki("#it.wikipedia", "https://fr.wikipedia.org/w/index.php", "it_wikipedia")); |
304 | 331 | wikiinfo.Add(new wiki("#nl.wikipedia", "https://fr.wikipedia.org/w/index.php", "nl_wikipedia")); |
305 | 332 | 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")); |
307 | 335 | return 0; |
308 | 336 | } |
309 | 337 | |