summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-22 02:23:30 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-22 02:23:30 +0200
commit157dab258e30c87844bdbcf164117f5238ea89d8 (patch)
tree8bf791011595f7ffb27c5437aef77d319485de29 /src/common
parent22cde0e5a20ec4663fc1686ef803d7e16a18c6a8 (diff)
Now, really fix grep on Windows
Diffstat (limited to 'src/common')
-rw-r--r--src/common/outbound.c4
-rw-r--r--src/common/xchat.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 5396ce57..e083eff2 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -2386,7 +2386,11 @@ cmd_lastlog (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 	if (*word_eol[2])
 	{
 		if (!strcmp (word[2], "-r"))
+#ifdef WIN32
+			lastlog (sess, word_eol[3], FALSE);
+#else
 			lastlog (sess, word_eol[3], TRUE);
+#endif
 		else
 			lastlog (sess, word_eol[2], FALSE);
 		return TRUE;
diff --git a/src/common/xchat.c b/src/common/xchat.c
index 52fb29a2..f90a6291 100644
--- a/src/common/xchat.c
+++ b/src/common/xchat.c
@@ -591,11 +591,7 @@ 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"\