Commit af40dcef38
Unsigned
Layout: unified · split
src/render.rs +13 −5
| @@ -143,10 +143,12 @@ impl RenderableEvent for MessageEvent { | ||
| 143 | 143 | color_reset = color_reset |
| 144 | 144 | ), |
| 145 | 145 | Notice(n) => format!( |
| 146 | "{color_user}{}{color_reset}\t{}", | |
| 146 | "{prefix}{color_notice}Notice{color_delim}({color_reset}{}{color_delim}){color_reset}: {}", | |
| 147 | 147 | displayname, |
| 148 | 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 | 152 | color_reset = color_reset |
| 151 | 153 | ), |
| 152 | 154 | Video(v) => format!( |
| @@ -157,9 +159,15 @@ impl RenderableEvent for MessageEvent { | ||
| 157 | 159 | color_user = color_user, |
| 158 | 160 | color_reset = color_reset |
| 159 | 161 | ), |
| 160 | ServerNotice(sn) => { | |
| 161 | format!("SERVER\t{}", sn.body) // TODO | |
| 162 | } | |
| 162 | ServerNotice(n) => format!( | |
| 163 | "{prefix}{color_notice}Server notice{color_delim}({color_reset}{}{color_delim}){color_reset}: {}", | |
| 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 | |