diff options
author | Berke Viktor <berkeviktor@aol.com> | 2011-12-11 17:34:02 +0100 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2011-12-11 17:34:02 +0100 |
commit | 132ef6cb50201cb6ab8ab0609a88ccce62aa6a21 (patch) | |
tree | 0d47c10fa3b9789592c6513286d57a0c010b071f /src/common/outbound.c | |
parent | 2012320d0eed36e0461e44ac9be8cc162c135bf5 (diff) |
initial patches for linux compatibility
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r-- | src/common/outbound.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c index 917562b9..8b0432ec 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -30,6 +30,7 @@ #ifndef WIN32 #include <sys/wait.h> +#include <unistd.h> #endif #include <time.h> @@ -2880,6 +2881,7 @@ cmd_recv (struct session *sess, char *tbuf, char *word[], char *word_eol[]) return FALSE; } +#if 0 /* manual command for flushing prefs to disk, but we use an autosave-upon-set approach instead */ static int cmd_saveconf (struct session *sess, char *tbuf, char *word[], char *word_eol[]) { @@ -2894,6 +2896,7 @@ cmd_saveconf (struct session *sess, char *tbuf, char *word[], char *word_eol[]) return TRUE; } +#endif static int cmd_say (struct session *sess, char *tbuf, char *word[], char *word_eol[]) @@ -3647,7 +3650,9 @@ const struct commands xc_cmds[] = { #endif {"RECV", cmd_recv, 1, 0, 1, N_("RECV <text>, send raw data to xchat, as if it was received from the irc server")}, - /*{"SAVECONF", cmd_saveconf, 0, 0, 1, N_("SAVECONF, saves the current settings to disk")},*/ +#if 0 + {"SAVECONF", cmd_saveconf, 0, 0, 1, N_("SAVECONF, saves the current settings to disk")}, +#endif {"SAY", cmd_say, 0, 0, 1, N_("SAY <text>, sends the text to the object in the current window")}, {"SEND", cmd_send, 0, 0, 1, N_("SEND <nick> [<file>]")}, |