Use /FSET RELSN to format /RELSN relayed messages

The RELSN format already existed but wasn't used - instead it used SEND_NOTICE.  The other relay
types already used similar formats for their relayed messages.

The default /FSET RELSN looks just like the default /FSET SEND_NOTICE so this shouldn't be
noticeable to anyone using the defaults.

This required updating the NOTICE-sending code to correctly stash the 'to' in the right place.
This commit is contained in:
Kevin Easton
2016-05-15 22:05:16 +10:00
parent 9fb317b07d
commit 2c805c096f
3 changed files with 7 additions and 4 deletions

View File

@@ -4010,7 +4010,7 @@ struct target_type target[4] =
add_last_type(&last_sent_msg[0], MAX_LAST_MSG, NULL, NULL, target[i].nick_list, copy);
}
else if ((i == 2) || (i == 3))
add_last_type(&last_sent_notice[0], MAX_LAST_MSG, target[i].nick_list, NULL, get_server_nickname(from_server), copy);
add_last_type(&last_sent_notice[0], MAX_LAST_MSG, get_server_nickname(from_server), NULL, target[i].nick_list, copy);
send_to_server("%s %s :%s", target[i].command, target[i].nick_list, copy);
new_free(&copy);