Commits

Anonymous committed 1a10e96

Use uid/sid for some ERR_CHANOPRIVSNEEDED if they go to a remote client.

Comments (0)

Files changed (2)

modules/core/m_message.c

 				if(!IsServer(source_p) && !IsService(source_p) && !is_chanop_voiced(msptr))
 				{
 					sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
-						   me.name, source_p->name, with_prefix);
+						   get_id(&me, source_p),
+						   get_id(source_p, source_p),
+						   with_prefix);
 					return (-1);
 				}
 

modules/m_topic.c

 		}
 		else
 			sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
-					me.name, source_p->name, name);
+					get_id(&me, source_p),
+					get_id(source_p, source_p), name);
 	}
 	else if(MyClient(source_p))
 	{