X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fprotocol.c;h=fb698504b8298b2745f221adbac863e4bde47e09;hb=c0553fc1748cffc9efcfc7c44329b21e92ebd6da;hp=dae51cbcf3908e9f3340d96dcfa7800957be0407;hpb=ee724c0360fac7840d032812b5ab677aa0d15074;p=tpg%2Fopendispense2.git diff --git a/src/client/protocol.c b/src/client/protocol.c index dae51cb..fb69850 100644 --- a/src/client/protocol.c +++ b/src/client/protocol.c @@ -701,7 +701,7 @@ int Dispense_AlterBalance(int Socket, const char *Username, int Ammount, const c rv = RV_BAD_ITEM; break; case 403: // Not in coke - fprintf(stderr, "You are not in coke (sucker)\n"); + fprintf(stderr, "Permissions error: %s\n", buf+4); rv = RV_PERMISSIONS; break; case 404: // Unknown user @@ -742,7 +742,7 @@ int Dispense_SetBalance(int Socket, const char *Username, int Balance, const cha switch(responseCode) { case 200: return 0; // OK - case 403: // Not in coke + case 403: // Not an administrator fprintf(stderr, "You are not an admin\n"); return RV_PERMISSIONS; case 404: // Unknown user