Changeset 0d4a068


Ignore:
Timestamp:
2010-05-03T22:58:15Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9893da3
Parents:
1a3ba05
Message:

Removed some disabled code related to away_devoice (now implemented anyway).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee_user.c

    r1a3ba05 r0d4a068  
    139139        g_free( old->status );
    140140        g_free( old );
    141 #if 0   
    142         /* LISPy... */
    143         if( ( set_getbool( &ic->bee->set, "away_devoice" ) ) &&         /* Don't do a thing when user doesn't want it */
    144             ( u->online ) &&                                            /* Don't touch offline people */
    145             ( ( ( u->online != oo ) && !u->away ) ||                    /* Voice joining people */
    146               ( ( u->online == oo ) && ( oa == !u->away ) ) ) )         /* (De)voice people changing state */
    147         {
    148                 char *from;
    149                
    150                 if( set_getbool( &ic->bee->set, "simulate_netsplit" ) )
    151                 {
    152                         from = g_strdup( ic->irc->myhost );
    153                 }
    154                 else
    155                 {
    156                         from = g_strdup_printf( "%s!%s@%s", ic->irc->mynick, ic->irc->mynick,
    157                                                             ic->irc->myhost );
    158                 }
    159                 irc_write( ic->irc, ":%s MODE %s %cv %s", from, ic->irc->channel,
    160                                                           u->away?'-':'+', u->nick );
    161                 g_free( from );
    162         }
    163 #endif
    164141}
    165142
Note: See TracChangeset for help on using the changeset viewer.