Open irssibot opened 17 years ago
own-nick.png
The bug in action. Messages from host to client does not the own nick highlighting
own_nick.patch
Patch fixing the bug.
Index: src/fe-common/irc/fe-events.c
===================================================================
--- src/fe-common/irc/fe-events.c (revision 4433)
+++ src/fe-common/irc/fe-events.c (working copy)
@@ -58,6 +58,13 @@
signal_emit("message irc op_public", 5,
server, recoded, nick, addr,
get_visible_target(server, target+1));
+ } else if(strcmp(server->nick, nick) == 0) {
+ /* handle messages written by my nick as my own.
+ this is nice when using irssiproxy. */
+ recoded = recode_in(SERVER(server), msg, ischannel(*target) ? target : nick);
+ signal_emit(ischannel(*target) ?
+ "message own_public" : "message own_private", 4,
+ server, msg, target, target);
} else {
recoded = recode_in(SERVER(server), msg, ischannel(*target) ? target : nick);
signal_emit(ischannel(*target) ?
Nick of irssiproxy messages don't emit the own_public/own_private signal in the connected clients, thus the nick don't get highlighted (bold white in default theme).
Screenshot of bug and fixing patch attached.