Fix CHANGE_NICK_ON_KILL feature
Remove the 'resend_only' flag option to fudge_nickname(). The only caller passing it was the CHANGE_NICK_ON_KILL feature, and in that case it was the wrong thing too (and stopped that function from working at all). Some other minor cleanups in fudge_nickname() while we're there.
This commit is contained in:
@@ -1302,7 +1302,7 @@ static void p_kill(char *from, char **ArgList)
|
||||
ArgList[1] ? ArgList[1] : "(No Reason)"))
|
||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_KILL_FSET), "%s %s %s", update_clock(GET_TIME), from, ArgList[1]? ArgList[1] : "You have been Killed"));
|
||||
if (get_int_var(CHANGE_NICK_ON_KILL_VAR))
|
||||
fudge_nickname(from_server, 1);
|
||||
fudge_nickname(from_server);
|
||||
if (get_int_var(AUTO_RECONNECT_VAR))
|
||||
servercmd (NULL, sc, empty_string, NULL);
|
||||
logmsg(LOG_KILL, from, 0, "%s", ArgList[1]?ArgList[1]:"(No Reason)");
|
||||
|
||||
Reference in New Issue
Block a user