$ git clone http://tcclient.ion.nu/tc_client.git
commit 43a6906c201805dcf77815ddc53628cb1092f8f8
Author: Alicia <...>
Date:   Sun Mar 12 11:05:54 2017 +0100

    Added a /quit command.

diff --git a/ChangeLog b/ChangeLog
index b4b1443..811547f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@ Adjusted tinychat account support for the latest compatibility-breaking changes.
 Added workaround in the RTMP acknowledgement code for when 4 gigabytes of data has been sent and the 32bit integer rolls around to 0.
 Bugfix: exit with non-zero status if connection fails.
 When getting site and channel from a URL, ignore anything after a slash after the channel name.
+Added a /quit command.
 modbot: use https instead of http and use the tcclient subdomain since some DNSes have trouble with underscores.
 modbot: added an option (--no-unapproved) to not add any unapproved videos to queue (videos still get approved by mods requesting or playing them manually)
 tc_client-gtk: fixed a race-condition in the builtin video player.
diff --git a/client.c b/client.c
index 8dd74f7..631ca01 100644
--- a/client.c
+++ b/client.c
@@ -486,6 +486,7 @@ int main(int argc, char** argv)
           if(nick){printf("Nickname of connection %i: %s\n", id, nick); fflush(stdout);}
           continue;
         }
+        else if(!strcmp(buf, "/quit")){break;}
       }
       site.sendmessage(sock, buf);
       continue;