Changeset e6cb110


Ignore:
Timestamp:
2008-02-11T20:31:27Z (16 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
d6fdf44
Parents:
3b8e8109
Message:

allow NULL for yes/no handlers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • query.c

    r3b8e8109 re6cb110  
    144144                else
    145145                        irc_usermsg( irc, "Accepted: %s", q->question );
    146                 q->yes( NULL, q->data );
     146                if(q->yes)
     147                        q->yes( NULL, q->data );
    147148        }
    148149        else
     
    152153                else
    153154                        irc_usermsg( irc, "Rejected: %s", q->question );
    154                 q->no( NULL, q->data );
     155                if(q->no)
     156                        q->no( NULL, q->data );
    155157        }
    156158        q->data = NULL;
Note: See TracChangeset for help on using the changeset viewer.