Changeset 1186382 for protocols/nogaim.c


Ignore:
Timestamp:
2007-10-10T22:15:59Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
285b55d
Parents:
8c2008e
Message:

Made the netsplit-like quit messages optional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r8c2008e r1186382  
    586586              ( ( u->online == oo ) && ( oa == !u->away ) ) ) )         /* (De)voice people changing state */
    587587        {
    588                 irc_write( ic->irc, ":%s MODE %s %cv %s", ic->irc->myhost,
    589                                                           ic->irc->channel, u->away?'-':'+', u->nick );
     588                char *from;
     589               
     590                if( set_getbool( &ic->irc->set, "simulate_netsplit" ) )
     591                {
     592                        from = g_strdup( ic->irc->myhost );
     593                }
     594                else
     595                {
     596                        from = g_strdup_printf( "%s!%s@%s", ic->irc->mynick, ic->irc->mynick,
     597                                                            ic->irc->myhost );
     598                }
     599                irc_write( ic->irc, ":%s MODE %s %cv %s", from, ic->irc->channel,
     600                                                          u->away?'-':'+', u->nick );
     601                g_free( from );
    590602        }
    591603}
Note: See TracChangeset for help on using the changeset viewer.