Changeset f1cf01c


Ignore:
Timestamp:
2011-06-29T01:59:46Z (13 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
3d952b5
Parents:
1082395
Message:

report trust state in gone_secure/still_secure messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r1082395 rf1cf01c  
    642642       
    643643        otr_update_uflags(context, u);
    644         if(!otr_update_modeflags(irc, u))
    645                 irc_usermsg(irc, "conversation with %s is now off the record", u->nick);
     644        if(!otr_update_modeflags(irc, u)) {
     645                char *trust = u->flags & IRC_USER_OTR_TRUSTED ? "trusted" : "untrusted!";
     646                irc_usermsg(irc, "conversation with %s is now off the record (%s)", u->nick, trust);
     647        }
    646648}
    647649
     
    681683
    682684        otr_update_uflags(context, u);
    683         if(!otr_update_modeflags(irc, u))
    684                 irc_usermsg(irc, "otr connection with %s has been refreshed", u->nick);
     685        if(!otr_update_modeflags(irc, u)) {
     686                char *trust = u->flags & IRC_USER_OTR_TRUSTED ? "trusted" : "untrusted!";
     687                irc_usermsg(irc, "otr connection with %s has been refreshed (%s)", u->nick, trust);
     688        }
    685689}
    686690
Note: See TracChangeset for help on using the changeset viewer.