/* taken from m_links */
for (acptr = GlobalClientList; acptr; acptr = cli_next(acptr))
{
- if (!IsServer(acptr) && !IsMe(acptr))
+ if (!IsServer(acptr) || IsMe(acptr))
continue;
if (match((char *)crulearg[0], cli_name(acptr)))
continue;
/* adapted from m_links */
for (acptr = GlobalClientList; acptr; acptr = cli_next(acptr))
{
- if (!IsServer(acptr) && !IsMe(acptr))
+ if (!IsServer(acptr) || IsMe(acptr))
continue;
if (match((char *)crulearg[1], cli_name(acptr)))
continue;
#if !defined(CR_DEBUG) && !defined(CR_CHKCONF)
collapse(currarg);
#endif
- if (!BadPtr(currarg))
+ if (currarg[0] != '\0')
{
DupString(argelemp, currarg);
argrootp->arg[argrootp->numargs++] = (void *)argelemp;