Answered by:
Help with commands in IRC Client

Question
-
Hi, im currently trying to make a simple IRC Gui Client. Im using the SmartIrc4net as a base, as it seems to be the most supportive out of all of them, found here: http://www.codeproject.com/Articles/8323/SmartIrc4net-the-C-IRC-library
Now What I am having problem with is the action commands. For example to make yourself an oper, you would type
/oper admin password or to changehost, would be /sethost mynewhost
My problem is that when I pass that value through a TextBox, instead of making me admin, or changing my host. My input just gets displayed as text in the chat.
Here is my code:
string[] serverlist;
serverlist = new string[] { "mydomain.com" };
int port = 6667;
string channel = "#MyChannel#";
try
{
irc.Connect(serverlist, port);
irc.Login("SmartIRC", "SmartIrc4net Test Bot");
irc.RfcJoin(channel);
irc.SendMessage(SendType.Message, channel, "/oper admin mypass");
irc.SendMessage(SendType.Action, channel, "/sethost mynewhost");irc.Listen();
But when I pass those values, all it does is just display what I typed in the chat, without actually making me oper, or changing my sethost.
Is there anyway that I could actually make it pass commands through to the IRC server, instead of just displaying the raw text on the chat?
Any help would be appreciated, Thanks
- Moved by Bob Shen Wednesday, May 9, 2012 7:49 AM (From:Visual C# General)
Monday, May 7, 2012 2:37 PM
Answers
-
You can ask here: http://answers.microsoft.com/en-us/windows
Read this article about one C# library for writing IRC application.
http://www.codeproject.com/KB/IP/smartirc4net.aspx
You can use the following tool to convert C# code to VB.NET code.
http://www.developerfusion.com/tools/convert/vb-to-csharp/Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, May 10, 2012 2:43 AM
- Marked as answer by Vicanade Thursday, May 10, 2012 6:17 PM
Thursday, May 10, 2012 2:43 AM
All replies
-
Hi Vicanade,
Thank you for visiting the MSDN forum. I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C#. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.
Bob Shen [MSFT]
MSDN Community Support | Feedback to us
Wednesday, May 9, 2012 7:49 AM -
You can ask here: http://answers.microsoft.com/en-us/windows
Read this article about one C# library for writing IRC application.
http://www.codeproject.com/KB/IP/smartirc4net.aspx
You can use the following tool to convert C# code to VB.NET code.
http://www.developerfusion.com/tools/convert/vb-to-csharp/Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, May 10, 2012 2:43 AM
- Marked as answer by Vicanade Thursday, May 10, 2012 6:17 PM
Thursday, May 10, 2012 2:43 AM