Eggdev: Crash problem.

stdarg stdarg at yahoo.com
Fri Feb 13 13:58:27 CST 2004


Well, I dunno how you're using the function, but there seem to be 3 things
wrong with it.

1. Msg binds don't have a "chan".

2. handle should be struct userrec *, not char *.

3. You're not checking to see if c is valid.

--- Miroslav Genov <matrix_n at gorna.net> wrote:
> Hi, i have little problem with my module, why when i try this code. When i
> bind any word to that function, eggdrop crash, any ideas ?
> 
> static int addban_msg (char *nick, char *host, char *handle, char *chan, char
> 
> *text) 
> { 
> Context; 
> struct chanset_t *c; 
> c = findchan_by_dname(chan); 
> u_addban (c, "mtx!*@*", botname, "pub", 0L, 0); 
> return 0; 
> }
> 
> 
> 
> 
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html



More information about the Eggdev mailing list