aboutsummaryrefslogtreecommitdiffstats
path: root/user.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-03-30 22:40:45 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-03-30 22:40:45 -0700
commit0da65d5fb37691ed4d31f7ab4058732f1440db6b (patch)
treea4904e65af761a4503bbc8d4a117d9a0a0ed42f8 /user.c
parentfa29d09342c79b886efacee4cfc3078be5f5a722 (diff)
s/gaim_connection/im_connection/ and some other minor API changes. The rest
will come tomorrow. It compiles, I'll leave the real testing up to someone else. ;-)
Diffstat (limited to 'user.c')
-rw-r--r--user.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/user.c b/user.c
index ff65fe66..232e3a58 100644
--- a/user.c
+++ b/user.c
@@ -140,21 +140,21 @@ user_t *user_find( irc_t *irc, char *nick )
return( NULL );
}
-user_t *user_findhandle( struct gaim_connection *gc, char *handle )
+user_t *user_findhandle( struct im_connection *ic, char *handle )
{
user_t *u;
char *nick;
/* First, let's try a hash lookup. If it works, it's probably faster. */
- if( ( nick = g_hash_table_lookup( gc->acc->nicks, handle ) ) &&
- ( u = user_find( gc->irc, nick ) ) &&
- ( gc->acc->prpl->handle_cmp( handle, u->handle ) == 0 ) )
+ if( ( nick = g_hash_table_lookup( ic->acc->nicks, handle ) ) &&
+ ( u = user_find( ic->irc, nick ) ) &&
+ ( ic->acc->prpl->handle_cmp( handle, u->handle ) == 0 ) )
return u;
/* However, it doesn't always work, so in that case we'll have to dig
through the whole userlist. :-( */
- for( u = gc->irc->users; u; u = u->next )
- if( u->gc == gc && u->handle && gc->acc->prpl->handle_cmp( u->handle, handle ) == 0 )
+ for( u = ic->irc->users; u; u = u->next )
+ if( u->ic == ic && u->handle && ic->acc->prpl->handle_cmp( u->handle, handle ) == 0 )
return u;
return NULL;