egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Small coding error

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
cmouse
Voice


Joined: 25 Nov 2009
Posts: 1

PostPosted: Wed Nov 25, 2009 6:18 am    Post subject: Small coding error Reply with quote

chanprog.c: In function ‘isowner’:
chanprog.c:671: warning: the address of ‘owner’ will always evaluate as ‘true’

if (!owner || !name)
return 0;

makes no sense. it will always evaluate true, since owner is extern char owner[]. Perhaps insted just check

if (!name)
return 0;
Back to top
View user's profile Send private message
Pixelz
Voice


Joined: 15 Jun 2005
Posts: 24
Location: EFnet

PostPosted: Wed Nov 25, 2009 6:26 am    Post subject: Reply with quote

This is fixed in CVS.
Back to top
View user's profile Send private message
pseudo
Halfop


Joined: 23 Nov 2009
Posts: 88
Location: Bulgaria

PostPosted: Wed Nov 25, 2009 6:35 am    Post subject: Reply with quote

As Pixelz said, I've fixed this in the CVS (upcoming 1.6.20) on May 16th.

http://cvs.eggheads.org/viewvc/viewvc.cgi/eggdrop1.6/src/chanprog.c?r1=1.61&r2=1.62

I would ask you to use the bugzilla ( http://bugzilla.eggheads.org ) or the bugs mailing list to report further issues to us. Thanks.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber