far from safety; that will likely crash your bot when your HANDLEN 9 eggdrop try to link to another HANDLEN 32 bot where LamerLamer is on party-line, since that 10-character handle, after getting relayed through the botnet, will cause writing past the end of your handle bufferKrzychuG wrote:I wonder why this limits are still in Eggdrop source code. It can be safely disabled and then allow to link bots with diffrent HANDLENS.
Code: Select all
#define HANDLEN 9 /* valid values 9->NICKMAX */
Code: Select all
#define HANDLEN 32 /* valid values 9->NICKMAX */
No, they won't crash. At least not 1.6.16 and newest. Bot with HANDLEN9 will cut some chars, that's all. You can relay to that bot using longer nickname, you can share userfile. No problem at all.demond wrote:far from safety; that will likely crash your bot when your HANDLEN 9 eggdrop try to link to another HANDLEN 32 bot where LamerLamer is on party-line, since that 10-character handle, after getting relayed through the botnet, will cause writing past the end of your handle bufferKrzychuG wrote:I wonder why this limits are still in Eggdrop source code. It can be safely disabled and then allow to link bots with diffrent HANDLENS.
Code: Select all
23:10:31 [15] <-+BPShirase (31 Aug 18:11) 15 Evangeline v1.1.2 2005/06/28 B1 <IRCnet>
23:10:31 [20] <-+Evangeline (01 Sep 23:03) 10 Evangeline v1.1.2 2005/06/28 B1 <IRCnet>
Code: Select all
I am BPShirase, running Evangeline v1.1.2 2005/06/28 B1: 27 users (mem: 106k).
.tcl set handlen
Tcl: 15
.wi lamerlamer1
[23:09:02] #KrzychuG# whois lamerlamer1
HANDLE PASS NOTES FLAGS LAST
lamerlamer1 yes 0 jmnoptx 23:06 (@main)
COMMENT: Added by: KrzychuG (01.09.2005 23:03:43)
.wi lamerlamer
[23:10:50] #KrzychuG# whois lamerlamer
Can't find anyone matching that.
.relay evangeline
[23:09:32] #KrzychuG# relay evangeline
Connecting to evangeline @ arjuna.no-ip.com:8890 ...
(Type *BYE* on a line by itself to abort.)
Success!
evangeline ...
(You can type *BYE* to prematurely close the connection.)
*** KrzychuG left the party line.
lamerlamer1
Enter your password.
*** lamerlamer joined the party line.
.status
[23:17:54] #lamerlamer# status
I am Evangeline, running Evangeline v1.1.2 2005/06/28 B1: 27 users (mem: 102k).
.tcl set handlen
Tcl: 10
.wi lamerlamer1
[23:15:49] #lamerlamer# whois lamerlamer1
HANDLE PASS NOTES FLAGS LAST
lamerlamer yes 0 jmnoptx 23:15 (partyline)
COMMENT: Added by: KrzychuG (01.09.2005 23:03:43)
.wi lamerlamer
[23:16:37] #lamerlamer# whois lamerlamer
HANDLE PASS NOTES FLAGS LAST
lamerlamer yes 0 jmnoptx 23:15 (partyline)
COMMENT: Added by: KrzychuG (01.09.2005 23:03:43)