Fix up /WILN, /WILC and /WILCR. last_ctcp is now the last CTCP request

recieved; last_ctcp_reply is the last reply recieved (used by /RELCR etc.)

All of the /WI* commands now do a /WII style full whois request.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@88 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2010-06-26 14:43:22 +00:00
parent 789ed916cd
commit 223926fdf2
5 changed files with 15 additions and 8 deletions

View File

@@ -92,6 +92,7 @@ LastMsg last_topic[2] = {{ NULL }};
LastMsg last_wall[MAX_LAST_MSG+1] = {{ NULL }};
LastMsg last_invite_channel[2] = {{ NULL }};
LastMsg last_ctcp[2] = {{ NULL }};
LastMsg last_ctcp_reply[2] = {{ NULL }};
LastMsg last_sent_ctcp[2] = {{ NULL }};
LastMsg last_sent_dcc[MAX_LAST_MSG+1] = {{ NULL }};
@@ -1360,7 +1361,7 @@ BUILT_IN_COMMAND(do_dirlasttype)
if (!my_strnicmp(command, "RELCR", 5))
{
t = &last_ctcp[0];
t = &last_ctcp_reply[0];
form = fget_string_var(FORMAT_CTCP_REPLY_FSET);
sform = "%s %s %s %s %s";
if (len == 6 && command[len-1] == 'T')