Changes in irc_commands.c [5b52a48:2f13222]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
r5b52a48 r2f13222 150 150 irc_part( irc, u, c->channel ); 151 151 152 if( c->gc )152 if( c->gc && c->gc->prpl ) 153 153 { 154 154 c->joined = 0; 155 c->gc-> acc->prpl->chat_leave( c->gc, c->id );155 c->gc->prpl->chat_leave( c->gc, c->id ); 156 156 } 157 157 } … … 173 173 user_t *u = user_find( irc, cmd[1] + 1 ); 174 174 175 if( u && u->gc && u->gc-> acc->prpl->chat_open )175 if( u && u->gc && u->gc->prpl && u->gc->prpl->chat_open ) 176 176 { 177 177 irc_reply( irc, 403, "%s :Initializing groupchat in a different channel", cmd[1] ); 178 178 179 if( !u->gc-> acc->prpl->chat_open( u->gc, u->handle ) )179 if( !u->gc->prpl->chat_open( u->gc, u->handle ) ) 180 180 { 181 181 irc_usermsg( irc, "Could not open a groupchat with %s.", u->nick ); … … 205 205 206 206 if( u && c && ( u->gc == c->gc ) ) 207 if( c->gc && c->gc-> acc->prpl->chat_invite )208 { 209 c->gc-> acc->prpl->chat_invite( c->gc, c->id, "", u->handle );207 if( c->gc && c->gc->prpl && c->gc->prpl->chat_invite ) 208 { 209 c->gc->prpl->chat_invite( c->gc, c->id, "", u->handle ); 210 210 irc_reply( irc, 341, "%s %s", nick, channel ); 211 211 return; … … 230 230 { 231 231 unsigned int i; 232 char *t = set_getstr( &irc->set, "default_target" );232 char *t = set_getstr( irc, "default_target" ); 233 233 234 234 if( g_strcasecmp( t, "last" ) == 0 && irc->last_target ) … … 477 477 478 478 if( u->gc ) 479 irc_reply( irc, 312, "%s %s.%s :%s network", u->nick, u->gc->acc->user, 480 u->gc->acc->server && *u->gc->acc->server ? u->gc->acc->server : "", 481 u->gc->acc->prpl->name ); 479 irc_reply( irc, 312, "%s %s.%s :%s network", u->nick, u->gc->user->username, 480 *u->gc->user->proto_opt[0] ? u->gc->user->proto_opt[0] : "", u->gc->prpl->name ); 482 481 else 483 482 irc_reply( irc, 312, "%s %s :%s", u->nick, irc->myhost, IRCD_INFO );
Note: See TracChangeset
for help on using the changeset viewer.