Changeset 8bd697c for query.c


Ignore:
Timestamp:
2008-02-11T21:53:10Z (16 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
5f4eede
Parents:
c595308
Message:

query_add: allow NULL for ic and pass irc to handler in that case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • query.c

    rc595308 r8bd697c  
    102102        int count = 0;
    103103       
     104        if(!ic)
     105                return;
     106       
    104107        q = irc->queries;
    105108        def = query_default( irc );
     
    145148                        irc_usermsg( irc, "Accepted: %s", q->question );
    146149                if(q->yes)
    147                         q->yes( q->ic, q->data );
     150                        q->yes( q->ic ? q->ic : irc, q->data );
    148151        }
    149152        else
     
    154157                        irc_usermsg( irc, "Rejected: %s", q->question );
    155158                if(q->no)
    156                         q->no( q->ic, q->data );
     159                        q->no( q->ic ? q->ic : irc, q->data );
    157160        }
    158161        q->data = NULL;
Note: See TracChangeset for help on using the changeset viewer.