diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-06 23:25:10 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-06 23:25:10 -0500 |
| commit | 396e9e6ca3732ec94e6aaa50804d250c795da264 (patch) | |
| tree | 4d26b4237f8cec579215077b041450e33598d41e /src/irc.c | |
| parent | 0310ed5a4662596251c5e3c641d409c6eda8ba01 (diff) | |
| download | fujinet-chat-396e9e6ca3732ec94e6aaa50804d250c795da264.tar.gz | |
Fix /me and /nick
Diffstat (limited to 'src/irc.c')
| -rw-r--r-- | src/irc.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -115,7 +115,7 @@ static void do_nick(void) { scr_print_active(msg_src); scr_print_active(" is "); } - scr_print_active(" now known as "); + scr_print_active("now known as "); scr_print_active(msg_dest); scr_eol_active(); } @@ -355,6 +355,12 @@ static void parse_msg(void) { /* ignore empty message */ if(!*msg) return; + /* + scr_print_active("RAW: "); + scr_print_active(msg); + scr_print_active("\n"); + */ + /* if there's a final multiword arg... */ /* FIXME: channel names can have colons, which breaks this... */ p = strstr(msg + 1, " :"); /* +1 to skip leading colon in msg source */ @@ -399,7 +405,10 @@ static void parse_msg(void) { } } } - if(msg_argcount) msg_dest = msg_args[0]; + if(msg_argcount) + msg_dest = msg_args[0]; + else if(msg_text) + msg_dest = msg_text; if(msg_src) { if((p = strstr(msg_src, "!"))) { |
