Changeset 3611717
- Timestamp:
- 2008-08-31T15:00:35Z (16 years ago)
- Branches:
- master
- Children:
- 3b99524
- Parents:
- d995c9b
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
chat.c
rd995c9b r3611717 58 58 59 59 s = set_add( &c->set, "auto_join", "false", set_eval_bool, c ); 60 s = set_add( &c->set, "auto_rejoin", "false", set_eval_bool, c );60 /* s = set_add( &c->set, "auto_rejoin", "false", set_eval_bool, c ); */ 61 61 s = set_add( &c->set, "nick", NULL, NULL, c ); 62 62 s->flags |= SET_NULL_OK; … … 169 169 return 0; 170 170 } 171 172 int chat_join( irc_t *irc, struct chat *c ) 173 { 174 struct groupchat *gc; 175 char *nick = set_getstr( &c->set, "nick" ); 176 177 if( nick == NULL ) 178 nick = irc->nick; 179 180 if( ( gc = c->acc->prpl->chat_join( c->acc->ic, c->handle, nick, NULL ) ) ) 181 { 182 g_free( gc->channel ); 183 gc->channel = g_strdup( c->channel ); 184 return 1; 185 } 186 187 return 0; 188 } -
chat.h
rd995c9b r3611717 43 43 int chat_chancmp( char *a, char *b ); 44 44 int chat_chanok( char *a ); 45 46 int chat_join( irc_t *irc, struct chat *c ); -
irc_commands.c
rd995c9b r3611717 193 193 else if( cmd[1] ) 194 194 { 195 struct groupchat *gc;196 195 struct chat *c; 197 196 user_t *u; … … 205 204 if( ( c = chat_bychannel( irc, cmd[1] ) ) ) 206 205 { 207 char *nick = set_getstr( &c->set, "nick" ); 208 209 if( nick == NULL ) 210 nick = irc->nick; 211 212 if( ( gc = c->acc->prpl->chat_join( c->acc->ic, c->handle, nick, NULL ) ) ) 213 { 214 g_free( gc->channel ); 215 gc->channel = g_strdup( c->channel ); 216 } 206 chat_join( irc, c ); 217 207 } 218 208 else -
protocols/nogaim.c
rd995c9b r3611717 249 249 void imcb_connected( struct im_connection *ic ) 250 250 { 251 irc_t *irc = ic->irc; 252 struct chat *c; 251 253 user_t *u; 252 254 … … 271 273 exponential backoff timer. */ 272 274 ic->acc->auto_reconnect_delay = 0; 275 276 for( c = irc->chatrooms; c; c = c->next ) 277 { 278 if( c->acc != ic->acc ) 279 continue; 280 281 if( set_getbool( &c->set, "auto_join" ) ) 282 chat_join( irc, c ); 283 } 273 284 } 274 285
Note: See TracChangeset
for help on using the changeset viewer.