From 280c56a7b24dc08b35a1ecd98c8f4b61435d1100 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 27 Mar 2010 13:36:47 -0400 Subject: Added privmsg handlers to users/channels. root commands are coming back. --- irc_send.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'irc_send.c') diff --git a/irc_send.c b/irc_send.c index 97fb3071..23298ef4 100644 --- a/irc_send.c +++ b/irc_send.c @@ -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 ); +} -- cgit v1.2.3