Hello There, Guest!
View New Posts  |  View Today's Posts
[C#] IRC Client Class

ii 
  • 0 Vote(s) - 0 Average


01-01-2013, 04:23 PM #41
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: IRC Client Class v1.0
You're getting a NullReferenceException which leads me to believe that you haven't ceclared an instance of a class that you are trying to use. Well... when you try to use instance members of the class that doesn't have an instance declared. Shared members would be alright.

Do you know how to use BreakPoints? See what it's finding as null. (Did you define the IRC class with the new keyword?)

Show us what you've got and maybe we can help you out.
This post was last modified: 01-01-2013, 04:23 PM by AceInfinity.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲

01-01-2013, 05:25 PM #42
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,862 Threads:494 Joined: Jun 2011 Reputation: 67

RE: IRC Client Class v1.0
You're not adding the event listener for PrivateMessage()

After you create the class, you need to add something like:
Code:
client.PrivateMessage += new PrivateMessageEventDelegate(PrivateMessage);

Have a look at this (I've lifted all download requirements) if you want to see a working example:
http://tech.reboot.pro/showthread.php?tid=1811

01-01-2013, 05:28 PM #43
kevorz
Junior Member
**
Posts: 16 Threads:2 Joined: Jan 2013 Reputation: 0

RE: IRC Client Class v1.0
Cheers KoBE! Going to check it out very soon :)

//Edit: Got it all sorted! I was missing a lot. Thanks! It's working marvelously.
This post was last modified: 01-01-2013, 07:55 PM by kevorz.

02-12-2013, 11:40 AM #44
Mario
Junior Member
**
Posts: 1 Threads:0 Joined: Feb 2013 Reputation: 0

RE: IRC Client Class v1.0
Hello, i am rookie at this, sorry if i am asking really pointless or stupid questions. But i need to know are those possibilitys i will list even possible to create. I need few more features to create for irc client for my gather.

1. Auth button where person can just enter his "Auth username" " Auth Passwor" and remember it, so he can just press on the button and it will auth the person.

2. A sign in button that will send the ".sign" cmd to chat 

Really would want to know, are those features possible.
Thank you for reading my message!

02-12-2013, 11:59 AM #45
Crystalii
Senior Member
***
Posts: 341 Threads:43 Joined: Aug 2012 Reputation: 4

RE: IRC Client Class v1.0
(02-12-2013, 11:40 AM)Mario Wrote:  Hello, i am rookie at this, sorry if i am asking really pointless or stupid questions. But i need to know are those possibilitys i will list even possible to create. I need few more features to create for irc client for my gather.

1. Auth button where person can just enter his "Auth username" " Auth Passwor" and remember it, so he can just press on the button and it will auth the person.

2. A sign in button that will send the ".sign" cmd to chat 

Really would want to know, are those features possible.
Thank you for reading my message!

By auth, do you mean /nickserv identify ?

Okay, here is the code to identify through a button:

Code:
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
        client.SendRAW("AUTH " & txtauth.text)
    End Sub
This post was last modified: 02-12-2013, 01:14 PM by Crystalii.

02-12-2013, 10:26 PM #46
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,862 Threads:494 Joined: Jun 2011 Reputation: 67

RE: IRC Client Class v1.0
As Crystalli has pointed out there is a SendRaw function that will allow you to send any command that the server will read. So, anything that is in the IRC protocol should work if the server allows it.

02-28-2013, 10:06 AM #47
cknipe
Junior Member
**
Posts: 2 Threads:0 Joined: Feb 2013 Reputation: 0

RE: IRC Client Class v1.0
Hi,

Just a few questions...

1) Help/Function/Class references and parameters?  I downloaded the DLL but I don't see any reference in terms of documentation, functions, or the parameters thereof...
2) Any possibility to add support for encryption?

Thnx,
Chris.

02-28-2013, 01:40 PM #48
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,862 Threads:494 Joined: Jun 2011 Reputation: 67

RE: IRC Client Class v1.0
Hey cknipe,

By encryption do you mean adding support for SSL, or sending and receiving encrypted messages over a non-encrypted channel?

As for documentation, the source is there, but I could probably add some documentation to the OP.

03-01-2013, 01:01 AM #49
cknipe
Junior Member
**
Posts: 2 Threads:0 Joined: Feb 2013 Reputation: 0

RE: IRC Client Class v1.0
Hi KoBE,

Yes sorry, I am referring to SSL

Module looks great BTW Both Thumbs Up

03-01-2013, 01:34 AM #50
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,862 Threads:494 Joined: Jun 2011 Reputation: 67

RE: IRC Client Class v1.0
I haven't explored that as an option. I have considered doing some more work on this, so I'll that to a list of things to do.


ii 


Forum Jump:


Possibly Related Threads...
Thread Author Replies Views Last Post
   Create your own IRC Client [C#/VB.Net] KoBE 185 116,199 10-01-2016, 06:57 PM
Last Post: AceInfinity
Star  Multi-Client Server Async Socket Example KoBE 165 163,680 09-10-2016, 05:17 AM
Last Post: R4TK3N
  Telnet Client AceInfinity 5 2,638 06-05-2016, 07:48 PM
Last Post: AceInfinity
   Twitch chat bot (irc client) dmgvol 11 18,932 08-24-2015, 11:59 PM
Last Post: Signal_20
   Justin.tv and Twitch.tv chat client. KoBE 41 21,612 07-13-2015, 11:02 PM
Last Post: KoBE


Users browsing this thread: 1 Guest(s)