mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
c7f7ec4391
commit
eb9f1eb985
@ -5,6 +5,7 @@ typedef struct {
|
||||
int id;
|
||||
|
||||
unsigned int not_initialized:1;
|
||||
unsigned int case_insensitive:1;
|
||||
|
||||
char *name;
|
||||
char *fullname;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user