diff options
author | LemonBoy <thatlemon@gmail.com> | 2017-10-21 17:40:45 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2018-01-07 12:36:19 +0100 |
commit | 432368bdc6b941c1ff6319748b357bd5bae1bb6e (patch) | |
tree | 8e427ad1924bc980c398518cfbc7663a23ddb2ed /src/irc | |
parent | cfc8c9f8e2d982ee3ebff7afa1d1bdeb04003029 (diff) | |
download | irssi-432368bdc6b941c1ff6319748b357bd5bae1bb6e.zip |
Use strcmp instead of g_strcmp0
There's no need to use the latter.
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-cap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/core/irc-cap.c b/src/irc/core/irc-cap.c index a5ae07aa..f448ef83 100644 --- a/src/irc/core/irc-cap.c +++ b/src/irc/core/irc-cap.c @@ -140,7 +140,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add caps = g_strsplit(g_strchomp(list), " ", -1); caps_length = g_strv_length(caps); - if (!g_strcmp0(evt, "LS")) { + if (!strcmp(evt, "LS")) { if (server->cap_supported) { g_hash_table_destroy(server->cap_supported); } @@ -204,7 +204,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add } } } - else if (!g_strcmp0(evt, "ACK")) { + else if (!strcmp(evt, "ACK")) { int got_sasl = FALSE; /* Emit a signal for every ack'd cap */ @@ -216,7 +216,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add else server->cap_active = g_slist_prepend(server->cap_active, g_strdup(caps[i])); - if (!g_strcmp0(caps[i], "sasl")) + if (!strcmp(caps[i], "sasl")) got_sasl = TRUE; cap_emit_signal(server, "ack", caps[i]); @@ -228,7 +228,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add if (got_sasl == FALSE) cap_finish_negotiation(server); } - else if (!g_strcmp0(evt, "NAK")) { + else if (!strcmp(evt, "NAK")) { g_warning("The server answered with a NAK to our CAP request, this should not happen"); /* A NAK'd request means that a required cap can't be enabled or disabled, don't update the |