$OpenBSD: patch-src_irc_core_irc-commands_c,v 1.1 2011/11/16 10:16:57 sthen Exp $
--- src/irc/core/irc-commands.c.orig	Sun Nov  6 05:04:02 2011
+++ src/irc/core/irc-commands.c	Sun Nov  6 05:04:09 2011
@@ -104,7 +104,7 @@ static void cmd_ctcp(const char *data, IRC_SERVER_REC 
 	if (*target == '\0' || *ctcpcmd == '\0')
 		cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
 
-	g_strup(ctcpcmd);
+	ascii_strup(ctcpcmd);
 	if (*ctcpdata == '\0')
 		g_string_printf(tmpstr, "PRIVMSG %s :\001%s\001", target, ctcpcmd);
 	else {
@@ -138,7 +138,7 @@ static void cmd_nctcp(const char *data, IRC_SERVER_REC
 	if (*target == '\0' || *ctcpcmd == '\0')
 		cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
 
-	g_strup(ctcpcmd);
+	ascii_strup(ctcpcmd);
 	recoded = recode_out(SERVER(server), ctcpdata, target);
 	g_string_printf(tmpstr, "NOTICE %s :\001%s %s\001", target, ctcpcmd, recoded);
 	g_free(recoded);
