aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/irc_send.c b/irc_send.c
index 3227b663..7739f798 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -109,6 +109,9 @@ void irc_send_motd( irc_t *irc )
close( fd );
}
+/* Used by some funcs that generate PRIVMSGs to figure out if we're talking to
+ this person in /query or in a control channel. WARNING: callers rely on
+ this returning a pointer at irc->user_nick, not a copy of it. */
const char *irc_user_msgdest( irc_user_t *iu )
{
irc_t *irc = iu->irc;