Directly link string format to numargs in do_dirlasttype()

This is just a simplification - the string format should always match the arguments passed,
and none of the options are using anything but plain %s formats.

This also requires modifying /RELI to store the invited-channel in .last_msg so that it
can use the numargs = 3 format.
This commit is contained in:
Kevin Easton
2016-05-15 22:29:13 +10:00
parent 2c805c096f
commit 95a422cd27
2 changed files with 10 additions and 25 deletions

View File

@@ -1261,7 +1261,7 @@ static void p_invite(char *from, char **ArgList)
}
if (!(chan = lookup_channel(invite_channel, from_server, 0)))
check_auto_join(from_server, from, invite_channel, ArgList[2]);
add_last_type(&last_invite_channel[0], 1, from, FromUserHost, ArgList[1], ArgList[2]?ArgList[2]:empty_string);
add_last_type(&last_invite_channel[0], 1, from, FromUserHost, NULL, ArgList[1]);
reset_display_target();
}
}