From a6207f2de6ef26fa2c733ed613a45a91c8e57136 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 21 Jan 2014 17:47:28 +0000 Subject: - Fixed improper use of the ID_or_name macro in several places git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2889 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/core/m_message.c | 10 +++++----- modules/core/m_mode.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/core') diff --git a/modules/core/m_message.c b/modules/core/m_message.c index 0fa48db..193287c 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -412,8 +412,8 @@ msg_client(int p_or_n, const char *command, struct Client *source_p, /* check for accept, flag recipient incoming message */ if (p_or_n != NOTICE) sendto_one(source_p, form_str(RPL_TARGUMODEG), - ID_or_name(&me, source_p->from), - ID_or_name(source_p, source_p->from), target_p->name, + ID_or_name(&me, source_p), + ID_or_name(source_p, source_p), target_p->name, callerid ? "+g" : "+G", callerid ? "server side ignore" : "server side ignore with the exception of common channels"); @@ -423,8 +423,8 @@ msg_client(int p_or_n, const char *command, struct Client *source_p, { if (p_or_n != NOTICE) sendto_one(source_p, form_str(RPL_TARGNOTIFY), - ID_or_name(&me, source_p->from), - ID_or_name(source_p, source_p->from), target_p->name); + ID_or_name(&me, source_p), + ID_or_name(source_p, source_p), target_p->name); sendto_one(target_p, form_str(RPL_UMODEGMSG), me.name, target_p->name, @@ -512,7 +512,7 @@ handle_special(int p_or_n, const char *command, struct Client *client_p, * Not destined for a user on me :-( */ sendto_one(target_p, ":%s %s %s :%s", - ID_or_name(source_p, target_p->from), + ID_or_name(source_p, target_p), command, nick, text); if ((p_or_n != NOTICE) && MyClient(source_p)) source_p->localClient->last_privmsg = CurrentTime; diff --git a/modules/core/m_mode.c b/modules/core/m_mode.c index dc4f001..4251aa0 100644 --- a/modules/core/m_mode.c +++ b/modules/core/m_mode.c @@ -74,8 +74,8 @@ m_mode(struct Client *client_p, struct Client *source_p, if ((chptr = hash_find_channel(parv[1])) == NULL) { sendto_one(source_p, form_str(ERR_NOSUCHCHANNEL), - ID_or_name(&me, source_p->from), - ID_or_name(source_p, source_p->from), + ID_or_name(&me, source_p), + ID_or_name(source_p, source_p), parv[1]); return 0; } -- cgit