Lines 921-936
Link Here
|
921 |
|
921 |
|
922 |
session_t *s = session_find(session); // session pointer |
922 |
session_t *s = session_find(session); // session pointer |
923 |
log_window_t *lw; |
923 |
log_window_t *lw; |
924 |
char *ruid; |
924 |
|
|
|
925 |
char *fuid; /* file uid */ |
926 |
char *ruid; /* strange variable name (ofcorz uid) */ |
927 |
char *cuid = NULL; /* conference uid */ |
925 |
|
928 |
|
926 |
/* olewamy jesli to irc i ma formatke irssi like, czekajac na irc-protocol-message */ |
929 |
/* olewamy jesli to irc i ma formatke irssi like, czekajac na irc-protocol-message */ |
927 |
if (session_check(s, 0, "irc") && logs_log_format(s) == LOG_FORMAT_IRSSI) |
930 |
if (session_check(s, 0, "irc") && logs_log_format(s) == LOG_FORMAT_IRSSI) |
928 |
return 0; |
931 |
return 0; |
929 |
|
932 |
|
930 |
class &= ~EKG_NO_THEMEBIT; |
933 |
class &= ~EKG_NO_THEMEBIT; |
|
|
934 |
|
935 |
if (class != EKG_MSGCLASS_SENT && class != EKG_MSGCLASS_SENT_CHAT) { |
936 |
int recipients_count = array_count((char **) rcpts); |
937 |
|
938 |
if (recipients_count > 0) { |
939 |
struct conference *c = conference_find_by_uids(s, uid, (const char **) rcpts, recipients_count, 0); |
940 |
|
941 |
if (c) cuid = c->name; |
942 |
else debug("logs_handler() smth strange happen (c == NULL) && recipients_count > 0 [%d]\n", recipients_count); |
943 |
} |
944 |
} |
945 |
|
931 |
ruid = (class >= EKG_MSGCLASS_SENT) ? rcpts[0] : uid; |
946 |
ruid = (class >= EKG_MSGCLASS_SENT) ? rcpts[0] : uid; |
932 |
|
947 |
|
933 |
lw = logs_log_find(session, ruid, 1)->lw; |
948 |
if (cuid) fuid = cuid; |
|
|
949 |
else fuid = ruid; |
950 |
|
951 |
lw = logs_log_find(session, fuid, 1)->lw; |
934 |
|
952 |
|
935 |
if (!lw) { |
953 |
if (!lw) { |
936 |
debug("[LOGS:%d] logs_handler, shit happen\n", __LINE__); |
954 |
debug("[LOGS:%d] logs_handler, shit happen\n", __LINE__); |