This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Small coding error

General support and discussion of Eggdrop bots.
Post Reply
c
cmouse
Voice
Posts: 1
Joined: Wed Nov 25, 2009 5:58 am

Small coding error

Post by cmouse »

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;
User avatar
Pixelz
Voice
Posts: 24
Joined: Wed Jun 15, 2005 9:37 am
Location: EFnet

Post by Pixelz »

This is fixed in CVS.
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

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

http://cvs.eggheads.org/viewvc/viewvc.c ... 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.
Post Reply