EnergyMech

Forum | Features | Download | Addons | Help | #emech | Links | About | Contact

Versions | News Archive | Installing | Linking | Configuration | Commands | FAQ


The time is now Thursday, April 7th, 2022, 12:24pm

Create account ]   User/Pass   


Forum Index :: Bug Reports :: FASTNICK not working EnergyMech 3.0.3 :: Reply to this topic

Author
 
Wild
Posted :: 8:00pm, Fri, Apr 30, 2010     Subject :: FASTNICK not working EnergyMech 3.0.3

(anonymous)
 
    i was haveing a problem when i was define FASTNICK option on Energymech 3.0.3 ..after the bot was connecting to IRC server the FASTNICK was not working after hours and hours of reading forums/topics NOTHING...
so i was take a look at EnergyMech 2.8.5.1 version as i was know that version was working FINE ... and i found the BUG/problem
was in parse.c file were the string lines for wantednick was wrong/not working
so here are the stepts :D
before ./configure go in src/config.h.in and enable FASTNICK ...
/*
* FASTNICK: faster nick regain if the nick is seen when released
* Enables code that is potentially dangerous if an attacker aquires
* the nick that the bot wants
*/
#define FASTNICK

now after ./configure you will have config.h with fastnick enabled

step 2 parse.c from version 3.0.3 at line FASTNICK looks like this

#ifdef FASTNICK
if (!nickcmp(CurrentNick,current->wantnick))
to_server("NICK %s\n",current->wantnick);
#endif /* FASTNICK */


well replace all those lines with :

#ifdef FASTNICK
if (!Strcasecmp(CurrentNick,current->wantnick))
send_to_server("NICK %s\n",current->wantnick);
#endif /* FASTNICK */



now you will have energymech 3.0.3 with FASTNICK option ENABLED

Thank You In Advance



 
deathy
Posted :: 2:06pm, Wed, Aug 1, 2012     Subject :: fix

(anonymous)
 
    Hey,

i get the following error with your fix:


erl.o prot.o redirect.o reset.o seen.o shit.o socket.o spy.o stats.o tcl.o telnet.o toybox.o trivia.o uptime.o user.o vars.o web.o -lcrypt
parse.o: In function `parse_quit':
/home/test/emech-3.0.3/src/parse.c:416: undefined reference to `send_to_server'
collect2: ld returned 1 exit status
make[1]: *** [energymech] Error 1
make[1]: Leaving directory `/home/test/emech-3.0.3/src'
make: *** [mech] Error 2


any thoughts ?

kind regards,

Caesar (deathy@live.co.uk)


 
proton
Posted :: 6:39am, Thu, Aug 2, 2012


Posts: 165
 
    the change is about making "nickcmp" into "Strcasecmp", not changing the "to_server"

 

Copyright © 2000-2005 Proton,  All rights reserved. Last edited August 16th, 2005.
HTML 4.01 CSS