Commit 157dab25 authored by Berke Viktor's avatar Berke Viktor

Now, really fix grep on Windows

parent 22cde0e5
......@@ -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);
lastlog (sess, word_eol[3], TRUE);
lastlog (sess, word_eol[2], FALSE);
return TRUE;
......@@ -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"\
"NAME GREP\n" "CMD lastlog -r &2\n\n"\
"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"\
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment