diff options
author | Timo Sirainen <cras@irssi.org> | 2001-09-11 17:47:31 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-09-11 17:47:31 +0000 |
commit | eb9f1eb9850fa1254feee9f740f525e49240fbdc (patch) | |
tree | 71cdb6697752c1c19f3d669733870dbd204ac6b9 /src | |
parent | c7f7ec439180cfdccad5220cf54448eb008c6d77 (diff) | |
download | irssi-eb9f1eb9850fa1254feee9f740f525e49240fbdc.zip |
autolog: target name is now always lowercased with irc protocol.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1789 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/chat-protocols.h | 1 | ||||
-rw-r--r-- | src/fe-common/core/fe-log.c | 4 | ||||
-rw-r--r-- | src/irc/core/irc-core.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/core/chat-protocols.h b/src/core/chat-protocols.h index cc7eaadc..74e34151 100644 --- a/src/core/chat-protocols.h +++ b/src/core/chat-protocols.h @@ -5,6 +5,7 @@ typedef struct { int id; unsigned int not_initialized:1; + unsigned int case_insensitive:1; char *name; char *fullname; diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c index 94b1f0f8..e3c7a1f9 100644 --- a/src/fe-common/core/fe-log.c +++ b/src/fe-common/core/fe-log.c @@ -22,6 +22,7 @@ #include "module-formats.h" #include "signals.h" #include "commands.h" +#include "chat-protocols.h" #include "servers.h" #include "levels.h" #include "misc.h" @@ -414,6 +415,9 @@ static void autolog_open(SERVER_REC *server, const char *target) '%' -> '%%' - so strftime() won't mess with them */ fixed_target = escape_target(target); + if (CHAT_PROTOCOL(server)->case_insensitive) + g_strdown(fixed_target); + fname = parse_special_string(autolog_path, server, NULL, fixed_target, NULL, 0); g_free(fixed_target); diff --git a/src/irc/core/irc-core.c b/src/irc/core/irc-core.c index b203fe35..4de12831 100644 --- a/src/irc/core/irc-core.c +++ b/src/irc/core/irc-core.c @@ -74,6 +74,8 @@ void irc_core_init(void) rec->fullname = "Internet Relay Chat"; rec->chatnet = "ircnet"; + rec->case_insensitive = TRUE; + rec->create_chatnet = create_chatnet; rec->create_server_setup = create_server_setup; rec->create_channel_setup = create_channel_setup; |