Commit af40dcef38
Unsigned
Layout: unified · split
src/render.rs +13 −5
| @@ -143,10 +143,12 @@ impl RenderableEvent for MessageEvent { | |||
| 143 | color_reset = color_reset | 143 | color_reset = color_reset |
| 144 | ), | 144 | ), |
| 145 | Notice(n) => format!( | 145 | Notice(n) => format!( |
| 146 | "{color_user}{}{color_reset}\t{}", | 146 | "{prefix}{color_notice}Notice{color_delim}({color_reset}{}{color_delim}){color_reset}: {}", |
| 147 | displayname, | 147 | displayname, |
| 148 | n.resolve_body(), | 148 | n.resolve_body(), |
| 149 | color_user = color_user, | 149 | prefix = Weechat::prefix("network"), |
| 150 | color_notice = Weechat::color("irc.color.notice"), | ||
| 151 | color_delim = Weechat::color("chat_delimiters"), | ||
| 150 | color_reset = color_reset | 152 | color_reset = color_reset |
| 151 | ), | 153 | ), |
| 152 | Video(v) => format!( | 154 | Video(v) => format!( |
| @@ -157,9 +159,15 @@ impl RenderableEvent for MessageEvent { | |||
| 157 | color_user = color_user, | 159 | color_user = color_user, |
| 158 | color_reset = color_reset | 160 | color_reset = color_reset |
| 159 | ), | 161 | ), |
| 160 | ServerNotice(sn) => { | 162 | ServerNotice(n) => format!( |
| 161 | format!("SERVER\t{}", sn.body) // TODO | 163 | "{prefix}{color_notice}Server notice{color_delim}({color_reset}{}{color_delim}){color_reset}: {}", |
| 162 | } | 164 | displayname, |
| 165 | n.body, | ||
| 166 | prefix = Weechat::prefix("network"), | ||
| 167 | color_notice = Weechat::color("irc.color.notice"), | ||
| 168 | color_delim = Weechat::color("chat_delimiters"), | ||
| 169 | color_reset = color_reset | ||
| 170 | ), | ||
| 163 | } | 171 | } |
| 164 | } | 172 | } |
| 165 | 173 | ||