summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-21 17:47:28 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-21 17:47:28 +0000
commita6207f2de6ef26fa2c733ed613a45a91c8e57136 (patch)
tree7c052f8544a8519cd8b53226aa11a683d43fc768 /modules/core
parent5f7e120fc961e63cefed1b3e322aa8712b328cdd (diff)
- 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
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/m_message.c10
-rw-r--r--modules/core/m_mode.c4
2 files changed, 7 insertions, 7 deletions
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;
}