From 22cde0e5a20ec4663fc1686ef803d7e16a18c6a8 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 22 Jul 2012 02:13:36 +0200 Subject: [PATCH] Make GREP work on Windows, regexp support isn't implemented in fe_lastlog yet --- src/common/outbound.c | 2 +- src/common/xchat.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/outbound.c b/src/common/outbound.c index 63653430..5396ce57 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -3598,7 +3598,7 @@ const struct commands xc_cmds[] = { {"LAGCHECK", cmd_lagcheck, 0, 0, 1, N_("LAGCHECK, forces a new lag check")}, {"LASTLOG", cmd_lastlog, 0, 0, 1, - N_("LASTLOG , searches for a string in the buffer")}, + N_("LASTLOG [-r] , searches for a string in the buffer")}, {"LIST", cmd_list, 1, 0, 1, 0}, {"LOAD", cmd_load, 0, 0, 1, N_("LOAD [-e] , loads a plugin or script")}, diff --git a/src/common/xchat.c b/src/common/xchat.c index f90a6291..52fb29a2 100644 --- a/src/common/xchat.c +++ b/src/common/xchat.c @@ -591,7 +591,11 @@ static char defaultconf_commands[] = "NAME DIALOG\n" "CMD query %2\n\n"\ "NAME DMSG\n" "CMD msg =%2 &3\n\n"\ "NAME EXIT\n" "CMD quit\n\n"\ +#ifdef WIN32 /* lastlog -r isn't implemented in fe_lastlog yet */ + "NAME GREP\n" "CMD lastlog &2\n\n"\ +#else "NAME GREP\n" "CMD lastlog -r &2\n\n"\ +#endif "NAME IGNALL\n" "CMD ignore %2!*@* ALL\n\n"\ "NAME J\n" "CMD join &2\n\n"\ "NAME KILL\n" "CMD quote KILL %2 :&3\n\n"\