- Add support for "!wm <value>" and "!wm <name>" commands.
[reactos.git] / irc / TechBot / TechBot.Library / TechBotService.cs
index aede24d..1236998 100644 (file)
@@ -15,16 +15,18 @@ namespace TechBot.Library
                private string ntstatusXml;\r
                private string winerrorXml;\r
                private string hresultXml;\r
+               private string wmXml;\r
                private string svnCommand;\r
                private ArrayList commands = new ArrayList();\r
                \r
                public TechBotService(IServiceOutput serviceOutput,\r
                                      string chmPath,\r
-                                         string mainChm,\r
-                                         string ntstatusXml,\r
-                                         string winerrorXml,\r
-                                         string hresultXml,\r
-                                         string svnCommand)\r
+                                     string mainChm,\r
+                                     string ntstatusXml,\r
+                                     string winerrorXml,\r
+                                     string hresultXml,\r
+                                     string wmXml,\r
+                                     string svnCommand)\r
                {\r
                        this.serviceOutput = serviceOutput;\r
                        this.chmPath = chmPath;\r
@@ -32,6 +34,7 @@ namespace TechBot.Library
                        this.ntstatusXml = ntstatusXml;\r
                        this.winerrorXml = winerrorXml;\r
                        this.hresultXml = hresultXml;\r
+                       this.wmXml = wmXml;\r
                        this.svnCommand = svnCommand;\r
                }\r
                \r
@@ -48,6 +51,8 @@ namespace TechBot.Library
                                                         winerrorXml));\r
                        commands.Add(new HresultCommand(serviceOutput,\r
                                                        hresultXml));\r
+                       commands.Add(new WmCommand(serviceOutput,\r
+                                                  wmXml));\r
                        commands.Add(new SvnCommand(serviceOutput,\r
                                                    svnCommand));\r
                }\r