Changeset aea22cd


Ignore:
Timestamp:
2011-10-03T15:48:01Z (13 years ago)
Author:
unknown <pesco@…>
Branches:
master
Children:
3864c08
Parents:
409c2de
Message:

otr: only skip coloring of leading /me if the message will go to a query window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r409c2de raea22cd  
    414414                                        color=5;   /* red */
    415415
    416                                 /* keep "/me " uncolored at the beginning */
    417                                 if (g_strncasecmp(msg, "/me ", 4) == 0) {
     416                                /* in a query window, keep "/me " uncolored at the beginning */
     417                                if(g_strncasecmp(msg, "/me ", 4) == 0
     418                                   && irc_user_msgdest(iu) == irc->user->nick) {
    418419                                        msg += 4;  /* skip */
    419420                                        pre = "/me ";
     
    421422
    422423                                /* comma in first place could mess with the color code */
    423                                 if (msg[0] == ',') {
     424                                if(msg[0] == ',') {
    424425                                    /* insert a space between color spec and message */
    425426                                    sep = " ";
Note: See TracChangeset for help on using the changeset viewer.