Backport changes from epic5 to make recv_nick, sent_nick and sent_body

per-server, and apply new version of do_oops from flewid (the BX2 version). 

This means that /oops, "/query .", "/query ,", "/msg ." and "/msg ," are now
per-server, along with the $. $, and $B aliases.



git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@87 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2010-06-26 08:18:34 +00:00
parent 56d5c9e643
commit 789ed916cd
10 changed files with 100 additions and 37 deletions

View File

@@ -3744,12 +3744,12 @@ Window *window_query (Window *window, char **args, char *usage)
host = *args;
if (!strcmp(nick, "."))
{
if (!(nick = sent_nick))
if (!(nick = get_server_sent_nick(window->server)))
say("You have not messaged anyone yet");
}
else if (!strcmp(nick, ","))
{
if (!(nick = recv_nick))
if (!(nick = get_server_recv_nick(window->server)))
say("You have not recieved a message yet");
}
else if (!strcmp(nick, "*") &&