171 |
|
fd_note(&source_p->localClient->fd, "Nick: %s", nick); |
172 |
|
} |
173 |
|
else |
174 |
< |
sendto_one(source_p, form_str(ERR_NICKTOOFAST), |
174 |
> |
sendto_one(source_p, ERR_NICKTOOFAST, |
175 |
|
me.name, source_p->name, source_p->name, |
176 |
|
nick, ConfigFileEntry.max_nick_time); |
177 |
|
} |
201 |
|
|
202 |
|
if (parc < 2 || EmptyString(parv[1])) |
203 |
|
{ |
204 |
< |
sendto_one(source_p, form_str(ERR_NONICKNAMEGIVEN), me.name, |
204 |
> |
sendto_one(source_p, ERR_NONICKNAMEGIVEN, me.name, |
205 |
|
source_p->name[0] ? source_p->name : "*"); |
206 |
|
return; |
207 |
|
} |
216 |
|
/* check the nickname is ok */ |
217 |
|
if (!valid_nickname(nick, 1)) |
218 |
|
{ |
219 |
< |
sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name, |
219 |
> |
sendto_one(source_p, ERR_ERRONEUSNICKNAME, me.name, |
220 |
|
source_p->name[0] ? source_p->name : "*", parv[1]); |
221 |
|
return; |
222 |
|
} |
225 |
|
if ((conf = find_matching_name_conf(CONF_NRESV, nick, NULL, NULL, 0))) |
226 |
|
{ |
227 |
|
++conf->count; |
228 |
< |
sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name, |
228 |
> |
sendto_one(source_p, ERR_ERRONEUSNICKNAME, me.name, |
229 |
|
source_p->name[0] ? source_p->name : "*", nick); |
230 |
|
sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE, |
231 |
|
"Forbidding reserved nick [%s] from user %s", |
238 |
|
else if (source_p == target_p) |
239 |
|
strlcpy(source_p->name, nick, sizeof(source_p->name)); |
240 |
|
else |
241 |
< |
sendto_one(source_p, form_str(ERR_NICKNAMEINUSE), me.name, "*", nick); |
241 |
> |
sendto_one(source_p, ERR_NICKNAMEINUSE, me.name, "*", nick); |
242 |
|
} |
243 |
|
|
244 |
|
|
268 |
|
|
269 |
|
if (parc < 2 || EmptyString(parv[1])) |
270 |
|
{ |
271 |
< |
sendto_one(source_p, form_str(ERR_NONICKNAMEGIVEN), |
271 |
> |
sendto_one(source_p, ERR_NONICKNAMEGIVEN, |
272 |
|
me.name, source_p->name); |
273 |
|
return; |
274 |
|
} |
283 |
|
/* check the nickname is ok */ |
284 |
|
if (!valid_nickname(nick, 1)) |
285 |
|
{ |
286 |
< |
sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), |
286 |
> |
sendto_one(source_p, ERR_ERRONEUSNICKNAME, |
287 |
|
me.name, source_p->name, nick); |
288 |
|
return; |
289 |
|
} |
294 |
|
(conf = find_matching_name_conf(CONF_NRESV, nick, NULL, NULL, 0))) |
295 |
|
{ |
296 |
|
++conf->count; |
297 |
< |
sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), |
297 |
> |
sendto_one(source_p, ERR_ERRONEUSNICKNAME, |
298 |
|
me.name, source_p->name, nick); |
299 |
|
sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE, |
300 |
|
"Forbidding reserved nick [%s] from user %s", |
325 |
|
change_local_nick(source_p, nick); |
326 |
|
} |
327 |
|
else |
328 |
< |
sendto_one(source_p, form_str(ERR_NICKNAMEINUSE), me.name, |
328 |
> |
sendto_one(source_p, ERR_NICKNAMEINUSE, me.name, |
329 |
|
source_p->name, nick); |
330 |
|
} |
331 |
|
|
803 |
|
"%s (Nick collision (new))", |
804 |
|
me.name); |
805 |
|
++ServerStats.is_kill; |
806 |
< |
sendto_one(target_p, form_str(ERR_NICKCOLLISION), |
806 |
> |
sendto_one(target_p, ERR_NICKCOLLISION, |
807 |
|
me.name, target_p->name, target_p->name); |
808 |
|
|
809 |
|
AddFlag(target_p, FLAGS_KILLED); |
842 |
|
client_p->name); |
843 |
|
|
844 |
|
++ServerStats.is_kill; |
845 |
< |
sendto_one(target_p, form_str(ERR_NICKCOLLISION), |
845 |
> |
sendto_one(target_p, ERR_NICKCOLLISION, |
846 |
|
me.name, target_p->name, target_p->name); |
847 |
|
|
848 |
|
/* if it came from a LL server, itd have been source_p, |
873 |
|
source_p->name, target_p->name, target_p->from->name, |
874 |
|
client_p->name); |
875 |
|
|
876 |
< |
sendto_one(target_p, form_str(ERR_NICKCOLLISION), me.name, |
876 |
> |
sendto_one(target_p, ERR_NICKCOLLISION, me.name, |
877 |
|
target_p->name, target_p->name); |
878 |
|
|
879 |
|
++ServerStats.is_kill; |
941 |
|
me.name); |
942 |
|
|
943 |
|
++ServerStats.is_kill; |
944 |
< |
sendto_one(target_p, form_str(ERR_NICKCOLLISION), |
944 |
> |
sendto_one(target_p, ERR_NICKCOLLISION, |
945 |
|
me.name, target_p->name, target_p->name); |
946 |
|
|
947 |
|
AddFlag(target_p, FLAGS_KILLED); |