Changeset 8c2b1c3


Ignore:
Timestamp:
2008-02-11T14:36:19Z (17 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
7f4016b
Parents:
2a2db6f
Message:

honor simulate_netsplit for encrypted/trusted mode changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r2a2db6f r8c2b1c3  
    958958        int nflags;
    959959        char *p = flags;
     960        char *from;
    960961        int i;
    961962       
     
    997998                strcat(p, u->nick);
    998999        }
    999         irc_write( irc, ":%s!%s@%s MODE %s %s%s", irc->mynick, irc->mynick, irc->myhost,
    1000                 irc->channel, flags, p );
     1000        if(set_getbool(&irc->set, "simulate_netsplit"))
     1001                from = g_strdup(irc->myhost);
     1002        else
     1003                from = g_strdup_printf("%s!%s@%s", irc->mynick, irc->mynick, irc->myhost);
     1004        irc_write(irc, ":%s MODE %s %s%s", from, irc->channel, flags, p);
     1005        g_free(from);
    10011006        g_free(p);
    10021007               
Note: See TracChangeset for help on using the changeset viewer.