It is currently November 21st, 2018, 4:06 am


All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: [FIXED] IRC bot gets stick /nick'ing
PostPosted: June 1st, 2012, 8:14 am 

Joined: August 21st, 2011, 6:31 am
Posts: 280
Location: United Kingdom
I found a rare bug in IRC if your bot nick was the maximum length of characters that IRC will accept and another bot of the same name already exists.

This happens forever:


Show
09:12:14 > IRC: Connecting to irc.esper.net:6667 as ssssssssssssssssssssssssssssssss
09:12:19 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss" is already in use. Trying "ssssssssssssssssssssssssssssssss_"
09:12:19 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss_" is already in use. Trying "ssssssssssssssssssssssssssssssss__"
09:12:19 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss__" is already in use. Trying "ssssssssssssssssssssssssssssssss___"
09:12:20 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss___" is already in use. Trying "ssssssssssssssssssssssssssssssss____"
09:12:21 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss____" is already in use. Trying "ssssssssssssssssssssssssssssssss_____"
09:12:22 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss_____" is already in use. Trying "ssssssssssssssssssssssssssssssss______"
09:12:22 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss______" is already in use. Trying "ssssssssssssssssssssssssssssssss_______"
09:12:23 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss_______" is already in use. Trying "ssssssssssssssssssssssssssssssss________"
09:12:24 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss________" is already in use. Trying "ssssssssssssssssssssssssssssssss_________"
09:12:25 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss_________" is already in use. Trying "ssssssssssssssssssssssssssssssss__________"
09:12:25 > IRC: Error: Nickname "ssssssssssssssssssssssssssssssss__________" is already in use. Trying "ssssssssssssssssssssssssssssssss___________"

_________________
You cannot use certain BBCodes: [img].


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Rare IRC Bug
PostPosted: June 2nd, 2012, 9:26 am 
fCraft Developer
User avatar

Joined: May 21st, 2011, 10:53 pm
Posts: 1386
I haven't thought of that. I'll see what I can do...


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Rare IRC Bug
PostPosted: June 4th, 2012, 4:32 pm 

Joined: August 21st, 2011, 6:31 am
Posts: 280
Location: United Kingdom
My thought was to replace the last Character in the name with '_', thus alienating the name slightly.

Edit: Yet again, same would happen if 'LongNam_' existed.

_________________
You cannot use certain BBCodes: [img].


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Rare IRC Bug
PostPosted: October 10th, 2012, 3:33 am 
User avatar

Joined: May 28th, 2012, 12:03 am
Posts: 25
perhaps try the "_" method up to 3 times. after that, generate a random nickname.

_________________
=== MeinKraft 24/7 ===
Server Owner & Code Developer


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Rare IRC Bug
PostPosted: October 10th, 2012, 1:01 pm 
fCraft Developer
User avatar

Joined: May 21st, 2011, 10:53 pm
Posts: 1386
Oh, I forgot all about this bug. I'll go back to look at it. Thanks for reminding me.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Rare IRC Bug
PostPosted: October 16th, 2012, 9:22 pm 
fCraft Developer
User avatar

Joined: May 21st, 2011, 10:53 pm
Posts: 1386
Fixed internally, coming with 0.637


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net