$ git clone http://tcclient.ion.nu/tc_client.git
commit ab13ac3e2eb3faec22a1b6072a304a934f63c025
Author: Alicia <...>
Date: Sat Oct 31 16:10:42 2015 +0100
Changed the /whois output to be more human-readable in cases where the user isn't logged in.
diff --git a/ChangeLog b/ChangeLog
index a02a42a..62711d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
0.36:
Implemented /whois <nick/ID> to check someone's username.
+Changed the /whois output to be more human-readable in cases where the user isn't logged in.
modbot: take time offset into account for the duration of videos.
modbot: added support for /mbpa (pause) and /mbpl (play/resume)
modbot: check that videos can be embedded (for the flash client) before adding them to the queue.
diff --git a/client.c b/client.c
index a953f28..253ce8d 100644
--- a/client.c
+++ b/client.c
@@ -1003,7 +1003,12 @@ int main(int argc, char** argv)
{
if(id->number==idlist[i].id)
{
- printf("%s is logged in as %s\n", idlist[i].name, account->string.string);
+ if(strcmp(account->string.string, "$noinfo"))
+ {
+ printf("%s is logged in as %s\n", idlist[i].name, account->string.string);
+ }else{
+ printf("%s is not logged in\n", idlist[i].name);
+ }
break;
}
}