CTCP VERSION Response & IRC BOT Problems

CTCP VERSION Response & IRC BOT Problems

Postby jeremyflexer » Wed Apr 30, 2014 12:42 am

I hope this is the right section. So about 2 days ago I decided to start writing a very simple irc bot, for learning purposes. I decided not to use an irc library so I could try to learn more. But I have ran into two problems.

1. I am not sure what to do about CTCP VERSION requests, how to handle them, if I should handle them, if I already handled them. I searched through pages and pages and I thought I had it figured out but I am not sure what to do. I am pretty sure I am responding to PING okay, I have no clue regarding VERSION. There also seems to be this box thing around VERSION, see here.
2. Most of the time I connect to server and join the channels fine, but other times it doesn't seem to connect to the channels. I don't know if that is caused by the problem above.

Code is here.

Anyways help and pointers are appreciated and please be gentle I am a total noob :).

Also I didn't copy it at the time because I was in a rush but I got something like this about the respondversion function.
Code: Select all
ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
User avatar
jeremyflexer
 
Posts: 23
Joined: Fri Jan 17, 2014 6:36 pm

Return to Networking

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests

cron