| 64 |
|
|
| 65 |
|
if (!HasOFlag(source_p, OPER_FLAG_MODULE)) |
| 66 |
|
{ |
| 67 |
< |
sendto_one(source_p, ERR_NOPRIVILEGES, |
| 67 |
> |
sendto_one(source_p, form_str(ERR_NOPRIVILEGES), |
| 68 |
|
me.name, source_p->name); |
| 69 |
|
return; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
if (EmptyString(parv[1])) |
| 73 |
|
{ |
| 74 |
< |
sendto_one(source_p, ERR_NEEDMOREPARAMS, |
| 74 |
> |
sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), |
| 75 |
|
me.name, source_p->name, "MODULE"); |
| 76 |
|
return; |
| 77 |
|
} |
| 80 |
|
{ |
| 81 |
|
if (EmptyString(parv[2])) |
| 82 |
|
{ |
| 83 |
< |
sendto_one(source_p, ERR_NEEDMOREPARAMS, |
| 83 |
> |
sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), |
| 84 |
|
me.name, source_p->name, "MODULE"); |
| 85 |
|
return; |
| 86 |
|
} |
| 100 |
|
{ |
| 101 |
|
if (EmptyString(parv[2])) |
| 102 |
|
{ |
| 103 |
< |
sendto_one(source_p, ERR_NEEDMOREPARAMS, |
| 103 |
> |
sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), |
| 104 |
|
me.name, source_p->name, "MODULE"); |
| 105 |
|
return; |
| 106 |
|
} |
| 138 |
|
{ |
| 139 |
|
if (EmptyString(parv[2])) |
| 140 |
|
{ |
| 141 |
< |
sendto_one(source_p, ERR_NEEDMOREPARAMS, |
| 141 |
> |
sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), |
| 142 |
|
me.name, source_p->name, "MODULE"); |
| 143 |
|
return; |
| 144 |
|
} |
| 220 |
|
if (!EmptyString(parv[2]) && match(parv[2], modp->name)) |
| 221 |
|
continue; |
| 222 |
|
|
| 223 |
< |
sendto_one(source_p, RPL_MODLIST, me.name, source_p->name, |
| 223 |
> |
sendto_one(source_p, form_str(RPL_MODLIST), me.name, source_p->name, |
| 224 |
|
modp->name, modp->handle, |
| 225 |
|
modp->version, (modp->flags & MODULE_FLAG_CORE) ?"(core)":""); |
| 226 |
|
} |
| 227 |
|
|
| 228 |
< |
sendto_one(source_p, RPL_ENDOFMODLIST, |
| 228 |
> |
sendto_one(source_p, form_str(RPL_ENDOFMODLIST), |
| 229 |
|
me.name, source_p->name); |
| 230 |
|
return; |
| 231 |
|
} |