summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-04 10:42:23 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-04 10:42:23 +0000
commitaf3b0b2b932ce5022788819ad7b661b5dca4467a (patch)
tree82d7b5bf408198ecc410ad37a3a3ff39b123f1f5
parent40f7904a1a8330f90aa30a8b540ee625e9f38d92 (diff)
downloadirssi-af3b0b2b932ce5022788819ad7b661b5dca4467a.zip
Replace g_strdup+g_str{up,down} with g_ascii_str{up,down}.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4721 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/core/fe-help.c3
-rw-r--r--src/fe-common/core/fe-modules.c3
-rw-r--r--src/irc/core/ctcp.c3
-rw-r--r--src/irc/dcc/dcc-chat.c3
4 files changed, 4 insertions, 8 deletions
diff --git a/src/fe-common/core/fe-help.c b/src/fe-common/core/fe-help.c
index 09485fac..be45e77b 100644
--- a/src/fe-common/core/fe-help.c
+++ b/src/fe-common/core/fe-help.c
@@ -254,9 +254,8 @@ static void cmd_help(const char *data)
{
char *cmd;
- cmd = g_strdup(data);
+ cmd = g_ascii_strdown(data, -1);
g_strchomp(cmd);
- g_strdown(cmd);
show_help(cmd);
g_free(cmd);
}
diff --git a/src/fe-common/core/fe-modules.c b/src/fe-common/core/fe-modules.c
index a47fa5a7..4a13f668 100644
--- a/src/fe-common/core/fe-modules.c
+++ b/src/fe-common/core/fe-modules.c
@@ -138,8 +138,7 @@ static char **module_prefixes_get(void)
for (tmp = chat_protocols; tmp != NULL; tmp = tmp->next) {
CHAT_PROTOCOL_REC *rec = tmp->data;
- name = g_strdup(rec->name);
- g_strdown(name);
+ name = g_ascii_strdown(rec->name, -1);
list[count++] = name;
list[count++] = g_strconcat("fe_", name, NULL);
diff --git a/src/irc/core/ctcp.c b/src/irc/core/ctcp.c
index 7d74495c..8ae3be43 100644
--- a/src/irc/core/ctcp.c
+++ b/src/irc/core/ctcp.c
@@ -58,8 +58,7 @@ void ctcp_register(const char *name)
rec = ctcp_cmd_find(name);
if (rec == NULL) {
rec = g_new0(CTCP_CMD_REC, 1);
- rec->name = g_strdup(name);
- g_strup(rec->name);
+ rec->name = g_ascii_strup(name, -1);
ctcp_cmds = g_slist_append(ctcp_cmds, rec);
}
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c
index 2c1c6844..5569cd96 100644
--- a/src/irc/dcc/dcc-chat.c
+++ b/src/irc/dcc/dcc-chat.c
@@ -720,8 +720,7 @@ static void dcc_chat_msg(CHAT_DCC_REC *dcc, const char *msg)
ptr = strchr(cmd, ' ');
if (ptr != NULL) *ptr++ = '\0'; else ptr = "";
- cmd = g_strdup(cmd);
- g_strup(cmd);
+ cmd = g_ascii_strup(cmd, -1);
g_strdown(event+9);
if (!signal_emit(event, 2, dcc, ptr)) {