Changeset 5c90890 for irc_user.c
- Timestamp:
- 2018-07-12T08:54:12Z (6 years ago)
- Branches:
- master
- Children:
- c82e4ca
- Parents:
- b9d1fdc
- git-author:
- dequis <dx@…> (03-07-18 06:17:17)
- git-committer:
- dequis <dx@…> (12-07-18 08:54:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_user.c
rb9d1fdc r5c90890 37 37 iu->key = g_strdup(nick); 38 38 nick_lc(irc, iu->key); 39 /* Using the hash table for speed and irc->users for easy iteration40 through the list (since the GLib API doesn't have anything sane41 for that.) */42 39 g_hash_table_insert(irc->nick_user_hash, iu->key, iu); 43 irc->users = g_slist_insert_sorted(irc->users, iu, irc_user_cmp);44 40 45 41 return iu; … … 87 83 irc_user_quit(iu, msg); 88 84 89 irc->users = g_slist_remove(irc->users, iu);90 85 g_hash_table_remove(irc->nick_user_hash, iu->key); 91 86 … … 148 143 } 149 144 150 irc->users = g_slist_remove(irc->users, iu);151 145 g_hash_table_remove(irc->nick_user_hash, iu->key); 152 146 … … 175 169 iu->key = g_strdup(key); 176 170 g_hash_table_insert(irc->nick_user_hash, iu->key, iu); 177 irc->users = g_slist_insert_sorted(irc->users, iu, irc_user_cmp);178 171 179 172 if (iu == irc->user) {
Note: See TracChangeset
for help on using the changeset viewer.