Changes in irc_user.c [debe871:9a9b520]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_user.c
rdebe871 r9a9b520 25 25 26 26 #include "bitlbee.h" 27 #include "ipc.h"28 27 29 28 irc_user_t *irc_user_new( irc_t *irc, const char *nick ) … … 121 120 { 122 121 irc_t *irc = iu->irc; 122 irc_user_t *new_iu; 123 123 char key[strlen(new)+1]; 124 124 GSList *cl; 125 125 126 126 strcpy( key, new ); 127 if( iu == NULL || !nick_lc( key ) || irc_user_by_name( irc, new ) ) 127 if( iu == NULL || !nick_lc( key ) || 128 ( ( new_iu = irc_user_by_name( irc, new ) ) && new_iu != iu ) ) 128 129 return 0; 129 130 … … 158 159 g_hash_table_insert( irc->nick_user_hash, iu->key, iu ); 159 160 irc->users = g_slist_insert_sorted( irc->users, iu, irc_user_cmp ); 160 161 if( iu == irc->user )162 ipc_to_master_str( "NICK :%s\r\n", new );163 161 164 162 return 1;
Note: See TracChangeset
for help on using the changeset viewer.