Skip to content

Commit

Permalink
src/filter.c: fix nick_len again
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Apr 13, 2016
1 parent f3e8511 commit d9e0106
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions data/theme/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ popover {
}

separator {
color: transparent;
background-color: @gray_color;
min-width: 1px;
min-height: 1px;
color: transparent;
background-color: @gray_color;
min-width: 1px;
min-height: 1px;
}


Expand Down Expand Up @@ -59,7 +59,7 @@ scrollbar slider {
margin: 0;
border-radius: 0;
border: 0 none transparent;
background-color: alpha(@fg_color, 0.2);
background-color: alpha(@fg_color, 0.4);
}

scrollbar { background-color: transparent; transition-duration: 0.2s; }
Expand All @@ -71,10 +71,10 @@ scrollbar.horizontal slider { min-width: 2.40602rem; min-height: 0.75188rem; mar
/* }} */

separator {
color: transparent;
background-color: rgba(0, 0, 0, 0.09);
min-width: 1px;
min-height: 1px;
color: transparent;
background-color: @gray_color;
min-width: 1px;
min-height: 1px;
}
/* }} */

Expand Down Expand Up @@ -134,16 +134,16 @@ separator {
/* background-image: url("./bg.jpg"); */
/* background-color: @active_color; */
background-image: -gtk-gradient(linear,
left top, right bottom,
/* TODO */
from(@msglist_color1), to(@msglist_color2));
left top, right bottom,
/* TODO */
from(@msglist_color1), to(@msglist_color2));
}
/*
#unread_label {
background-color: @bg_color; padding: 6px;
box-shadow: alpha(black, 0.2) 0px 2px;
background-color: @bg_color; padding: 6px;
box-shadow: alpha(black, 0.2) 0px 2px;
}
*/
*/
/* }} */


Expand Down
2 changes: 1 addition & 1 deletion src/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void filter_relaybot_trans(irc_msg_t *imsg){
memset(imsg->nick, 0, NICK_LEN);
strncpy(imsg->nick,
imsg->message + strlen(info->ldelim),
(nick_len>NICK_LEN?NICK_LEN:nick_len) - 1);
(nick_len>NICK_LEN?NICK_LEN:nick_len));

strncpy(tmp_msg, rdelim_ptr + strlen(info->rdelim), max_msg_len);
memset(imsg->message, 0, MSG_LEN);
Expand Down

0 comments on commit d9e0106

Please sign in to comment.