summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@irssi.org>2010-04-03 20:09:37 +0000
committerahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564>2010-04-03 20:09:37 +0000
commit8728207191dc544aa473c322fbb779a032aa6d62 (patch)
treefad0fb7b66746551a9593d686fe4c43f76422b7f /src/irc
parentdf1d7a78147805119f045036fc87c23e2c5c8094 (diff)
downloadirssi-8728207191dc544aa473c322fbb779a032aa6d62.zip
deprecated glib strup/down fixes from exg.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5138 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/ctcp.c4
-rw-r--r--src/irc/core/irc-commands.c4
-rw-r--r--src/irc/core/irc.c2
-rw-r--r--src/irc/dcc/dcc-chat.c4
-rw-r--r--src/irc/dcc/dcc.c6
-rw-r--r--src/irc/proxy/listen.c4
6 files changed, 12 insertions, 12 deletions
diff --git a/src/irc/core/ctcp.c b/src/irc/core/ctcp.c
index 06fad103..be2edba0 100644
--- a/src/irc/core/ctcp.c
+++ b/src/irc/core/ctcp.c
@@ -238,7 +238,7 @@ static void ctcp_msg(IRC_SERVER_REC *server, const char *data,
args = strchr(str+9, ' ');
if (args != NULL) *args++ = '\0'; else args = "";
- g_strdown(str+9);
+ ascii_strdown(str+9);
if (!signal_emit(str, 5, server, args, nick, addr, target)) {
signal_emit("default ctcp msg", 5,
server, data, nick, addr, target);
@@ -258,7 +258,7 @@ static void ctcp_reply(IRC_SERVER_REC *server, const char *data,
args = strchr(str+11, ' ');
if (args != NULL) *args++ = '\0'; else args = "";
- g_strdown(str+11);
+ ascii_strdown(str+11);
if (!signal_emit(str, 5, server, args, nick, addr, target)) {
signal_emit("default ctcp reply", 5,
server, data, nick, addr, target);
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c
index 8ee5c9bd..52a9a748 100644
--- a/src/irc/core/irc-commands.c
+++ b/src/irc/core/irc-commands.c
@@ -104,7 +104,7 @@ static void cmd_ctcp(const char *data, IRC_SERVER_REC *server,
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 *server,
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);
diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c
index 1ffecb0b..509418b7 100644
--- a/src/irc/core/irc.c
+++ b/src/irc/core/irc.c
@@ -290,7 +290,7 @@ static void irc_server_event(IRC_SERVER_REC *server, const char *line,
args = strchr(event+6, ' ');
if (args != NULL) *args++ = '\0'; else args = "";
while (*args == ' ') args++;
- g_strdown(event);
+ ascii_strdown(event);
/* check if event needs to be redirected */
signal = server_redirect_get_signal(server, nick, event, args);
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c
index 61b69d73..b3950002 100644
--- a/src/irc/dcc/dcc-chat.c
+++ b/src/irc/dcc/dcc-chat.c
@@ -281,7 +281,7 @@ static void cmd_ctcp(const char *data, IRC_SERVER_REC *server)
dcc = dcc_chat_find_id(target+1);
if (dcc != NULL) {
- g_strup(ctcpcmd);
+ ascii_strup(ctcpcmd);
str = g_strconcat(ctcpcmd, " ", ctcpdata, NULL);
dcc_ctcp_message(server, dcc->nick, dcc, FALSE, str);
@@ -719,7 +719,7 @@ static void dcc_chat_msg(CHAT_DCC_REC *dcc, const char *msg)
cmd = g_ascii_strup(cmd, -1);
- g_strdown(event+9);
+ ascii_strdown(event+9);
if (!signal_emit(event, 2, dcc, ptr)) {
signal_emit(reply ? "default dcc reply" :
"default dcc ctcp", 3, dcc, cmd, ptr);
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c
index bc8d8452..a4bb774e 100644
--- a/src/irc/dcc/dcc.c
+++ b/src/irc/dcc/dcc.c
@@ -367,7 +367,7 @@ static void ctcp_msg_dcc(IRC_SERVER_REC *server, const char *data,
args = strchr(str+13, ' ');
if (args != NULL) *args++ = '\0'; else args = "";
- g_strdown(str+13);
+ ascii_strdown(str+13);
if (!signal_emit(str, 6, server, args, nick, addr, target, chat)) {
signal_emit("default ctcp msg dcc", 6,
server, data, nick, addr, target, chat);
@@ -389,7 +389,7 @@ static void ctcp_reply_dcc(IRC_SERVER_REC *server, const char *data,
args = strchr(str+15, ' ');
if (args != NULL) *args++ = '\0'; else args = "";
- g_strdown(str+15);
+ ascii_strdown(str+15);
if (!signal_emit(str, 5, server, args, nick, addr, target)) {
signal_emit("default ctcp reply dcc", 5,
server, data, nick, addr, target);
@@ -502,7 +502,7 @@ static void cmd_dcc_close(char *data, IRC_SERVER_REC *server)
if (*nick == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
- g_strup(typestr);
+ ascii_strup(typestr);
type = dcc_str2type(typestr);
if (type == -1) {
signal_emit("dcc error unknown type", 1, typestr);
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c
index 57318642..4df315fd 100644
--- a/src/irc/proxy/listen.c
+++ b/src/irc/proxy/listen.c
@@ -317,7 +317,7 @@ static void sig_listen_client(CLIENT_REC *client)
args = strchr(cmd, ' ');
if (args != NULL) *args++ = '\0'; else args = "";
if (*args == ':') args++;
- g_strup(cmd);
+ ascii_strup(cmd);
handle_client_cmd(client, cmd, args, str);
@@ -391,7 +391,7 @@ static void sig_server_event(IRC_SERVER_REC *server, const char *line,
args = strchr(event+6, ' ');
if (args != NULL) *args++ = '\0'; else args = "";
while (*args == ' ') args++;
- g_strdown(event);
+ ascii_strdown(event);
signal = server_redirect_peek_signal(server, nick, event, args, &redirected);
if ((signal != NULL && strncmp(signal, "proxy ", 6) != 0) ||