summary refs log tree commit diff stats
path: root/plugins/fishlim/irc.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-12 05:15:49 -0500
committerTingPing <tingping@tingping.se>2014-12-15 15:06:48 -0500
commitbdb5c3eb9ddafff656953ff048b6b3bbb3234181 (patch)
tree2d4bd22eb6bfe4b7527bbd464d6f528052e17b84 /plugins/fishlim/irc.c
parentc54a0c6db93b3fc2c6d749b79221a8d26d8afbd7 (diff)
fishlim: Use hexchat_nickcmp()
Diffstat (limited to 'plugins/fishlim/irc.c')
-rw-r--r--plugins/fishlim/irc.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/fishlim/irc.c b/plugins/fishlim/irc.c
index c80fc1c9..2ed23f41 100644
--- a/plugins/fishlim/irc.c
+++ b/plugins/fishlim/irc.c
@@ -76,29 +76,3 @@ char *irc_prefix_get_nick(const char *prefix) {
     length = end - prefix;
     return g_strndup (prefix, length);
 }
-
-
-/**
- * Compares two nick names. Return 0 if equal. Otherwise the return value is
- * less than zero if a is less than b or greater than zero if a is greater
- * than b.
- */
-int irc_nick_cmp(const char *a, const char *b) {
-    char ac;
-    char bc;
-    char diff;
-    for (;;) {
-        ac = *(a++);
-        bc = *(b++);
-        
-        // Change into IRC uppercase (see RFC 2812 section 2.2)
-        if (ac >= 'a' && ac <= '~') ac &= ~0x20;
-        if (bc >= 'a' && bc <= '~') bc &= ~0x20;
-        
-        diff = ac - bc;
-        if (diff) return diff;
-        if (!ac) return 0;
-    }
-}
-
-