From 2ae5b6b9ab2a528425c1c5265b04bb01a5246e29 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 13 Aug 2018 13:49:03 -0400 Subject: Add /query, /part and /close Closing a channel before parting it is a bit weird, but if I send a PART on /close, it would get reopened again to show the part message. --- handle.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'handle.c') diff --git a/handle.c b/handle.c index 4d2d4b1..80ed1b4 100644 --- a/handle.c +++ b/handle.c @@ -122,12 +122,15 @@ static void handleJoin(char *prefix, char *params) { char *nick, *user, *chan; shift(prefix, &nick, &user, NULL, params, 1, 0, &chan); struct Tag tag = tagFor(chan); + if (isSelf(nick, user)) { + tabTouch(TAG_NONE, chan); + uiViewTag(tag); + } tabTouch(tag, nick); uiFmt( tag, "\3%d%s\3 arrives in \3%d%s\3", color(user), nick, color(chan), chan ); - if (isSelf(nick, user)) uiViewTag(tag); } static void handlePart(char *prefix, char *params) { -- cgit 1.4.1 t> collaborative ASCII art
about summary refs log tree commit diff homepage
path: root/meta.c (unfollow)
Commit message (Expand)Author
2017-09-03Relicense AGPLJune McEnroe
2017-09-01Revert "Add client readOnly mode"June McEnroe
2017-09-01Remove clientRemove call from clientCastJune McEnroe
2017-09-01Add client readOnly modeJune McEnroe
2017-08-31Clean up merge toolJune McEnroe
2017-08-31Choose B for tiles with equal modify timesJune McEnroe
2017-08-31Add quick data file merge toolJune McEnroe
2017-08-30Use only foreground color for selecting spawnJune McEnroe
2017-08-29Add four additional spawnsJune McEnroe
2017-08-28Add respawningJune McEnroe
2017-08-26Move license above includesJune McEnroe
2017-08-26Snapshot metadataJune McEnroe
2017-08-26Add meta.c to READMEJune McEnroe
2017-08-26Use MakefileJune McEnroe