diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-27 13:36:47 -0400 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-27 13:36:47 -0400 |
commit | 280c56a7b24dc08b35a1ecd98c8f4b61435d1100 (patch) | |
tree | 81340377a433898775385ee070beea1e4ea5e65b /irc_send.c | |
parent | 2f53ada73d7d43b538c157563ab5eb39b7592137 (diff) |
Added privmsg handlers to users/channels. root commands are coming back.
Diffstat (limited to 'irc_send.c')
-rw-r--r-- | irc_send.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -146,10 +146,8 @@ void irc_send_part( irc_channel_t *ic, irc_user_t *iu, const char *reason ) void irc_send_names( irc_channel_t *ic ) { GSList *l; - irc_user_t *iu; char namelist[385] = ""; - struct groupchat *c = NULL; - char *ops = set_getstr( &ic->irc->b->set, "ops" ); + //char *ops = set_getstr( &ic->irc->b->set, "ops" ); /* RFCs say there is no error reply allowed on NAMES, so when the channel is invalid, just give an empty reply. */ @@ -239,3 +237,9 @@ void irc_send_who( irc_t *irc, GSList *l, const char *channel ) irc_send_num( irc, 315, "%s :End of /WHO list", channel ); } + +void irc_send_msg( irc_user_t *iu, const char *type, const char *dst, const char *msg ) +{ + irc_write( iu->irc, ":%s!%s@%s %s %s :%s", + iu->nick, iu->user, iu->host, type, dst, msg ); +} |