Changes in / [c1826c6:92ad3d4]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rc1826c6 r92ad3d4 1173 1173 } 1174 1174 irc_reply( irc, 376, ":End of MOTD" ); 1175 close socket( fd );1175 close( fd ); 1176 1176 } 1177 1177 } -
protocols/yahoo/yahoo.c
rc1826c6 r92ad3d4 189 189 { 190 190 struct byahoo_data *yd = (struct byahoo_data *) gc->proto_data; 191 191 192 192 gc->away = NULL; 193 194 if (msg)193 194 if( msg ) 195 195 { 196 196 yd->current_status = YAHOO_STATUS_CUSTOM; 197 197 gc->away = ""; 198 198 } 199 else if (state)199 if( state ) 200 200 { 201 201 gc->away = ""; 202 if( g_strcasecmp( state, "Available" ) == 0 )202 if( g_strcasecmp( state, "Available" ) == 0 ) 203 203 { 204 204 yd->current_status = YAHOO_STATUS_AVAILABLE; … … 235 235 } 236 236 } 237 else if 237 else if( gc->is_idle ) 238 238 yd->current_status = YAHOO_STATUS_IDLE; 239 239 else 240 240 yd->current_status = YAHOO_STATUS_AVAILABLE; 241 241 242 yahoo_set_away( yd->y2_id, yd->current_status, msg, gc->away != NULL ); 242 if( yd->current_status == YAHOO_STATUS_INVISIBLE ) 243 yahoo_set_away( yd->y2_id, yd->current_status, NULL, gc->away != NULL ); 244 else 245 yahoo_set_away( yd->y2_id, yd->current_status, msg, gc->away != NULL ); 243 246 } 244 247
Note: See TracChangeset
for help on using the changeset viewer.