summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/ctcp.c3
-rw-r--r--src/irc/dcc/dcc-chat.c3
2 files changed, 2 insertions, 4 deletions
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)) {