diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-06-24 20:13:18 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-06-28 16:15:15 +0100 |
commit | dcdb11a78bace7bb4ec36e3c79ea8418a7f4ccfd (patch) | |
tree | 8240c155ec7954926a42f513f0324add7fb05675 /src/common/inbound.c | |
parent | aef9e3922e6f6557b156ba6c1fc9e2b0a03db316 (diff) |
Added preferences options to enable the server-time extension when available.
(Internationalization messages missing.)
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r-- | src/common/inbound.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c index 8547a70a..2645c438 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -1665,14 +1665,12 @@ inbound_cap_ls (server *serv, char *nick, char *extensions_str, */ if (!strcmp (extension, "znc.in/server-time")) { - strcat (buffer, "znc.in/server-time"); - strcat (buffer, " "); + strcat (buffer, "znc.in/server-time "); } - else if (!strcmp (extension, "server-time")) + if (prefs.hex_irc_cap_server_time + && !strcmp (extension, "server-time")) { - /* ignore. it is best to have server-time explicitly enabled or have - * a option in the preferences (or per server). - */ + strcat (buffer, "server-time "); } /* if the SASL password is set AND auth mode is set to SASL, request SASL auth */ |