Changeset 280c56a for irc_send.c


Ignore:
Timestamp:
2010-03-27T17:36:47Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
74f1cde
Parents:
2f53ada
Message:

Added privmsg handlers to users/channels. root commands are coming back.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_send.c

    r2f53ada r280c56a  
    147147{
    148148        GSList *l;
    149         irc_user_t *iu;
    150149        char namelist[385] = "";
    151         struct groupchat *c = NULL;
    152         char *ops = set_getstr( &ic->irc->b->set, "ops" );
     150        //char *ops = set_getstr( &ic->irc->b->set, "ops" );
    153151       
    154152        /* RFCs say there is no error reply allowed on NAMES, so when the
     
    240238        irc_send_num( irc, 315, "%s :End of /WHO list", channel );
    241239}
     240
     241void irc_send_msg( irc_user_t *iu, const char *type, const char *dst, const char *msg )
     242{
     243        irc_write( iu->irc, ":%s!%s@%s %s %s :%s",
     244                   iu->nick, iu->user, iu->host, type, dst, msg );
     245}
Note: See TracChangeset for help on using the changeset viewer.