X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-error.c;h=9022e93b74b1f131789d29454576e6cda7115add;hp=4bd5498ea602f974e286404acc177d4624768a21;hb=fb7c828d7963a599cb43593ecd70a317e7cdb962;hpb=82b903360548669988e41ffe055bc2215a28b404 diff --git a/src/ttt-error.c b/src/ttt-error.c index 4bd5498..9022e93 100644 --- a/src/ttt-error.c +++ b/src/ttt-error.c @@ -26,27 +26,31 @@ ttt_error_string (ttt_error_t error) { switch (error) { case TTT_ERROR_NONE: - return "ERROT NONE\n"; + return "ERROR NONEi\r\n"; case TTT_ERROR_NO_NAME_SET: - return "ERROR NONAMESET\n"; + return "ERROR NO_NAME_SET\r\n"; case TTT_ERROR_INVALID_NAME: - return "ERROR INVALIDNAME\n"; + return "ERROR INVALID_NAME\r\n"; case TTT_ERROR_COMMAND: - return "ERROR COMMAND\n"; + return "ERROR COMMAND\r\n"; case TTT_ERROR_SYNTAX: - return "ERROR SYNTAX\n"; + return "ERROR SYNTAX\r\n"; case TTT_ERROR_NOT_NUMBER: - return "ERROR NOTNUMBER\n"; + return "ERROR NOT_NUMBER\r\n"; case TTT_ERROR_NOT_GRID: - return "ERROR NOTGRID\n"; + return "ERROR NOT_GRID\r\n"; + case TTT_ERROR_NO_INVITE: + return "ERROR NO_INVITE\r\n"; + case TTT_ERROR_NO_GAME: + return "ERROR NO_GAME\r\n"; case TTT_ERROR_NO_USER: - return "ERROR NOUSER\n"; + return "ERROR NO_USER\r\n"; case TTT_ERROR_NOT_IN_GAME: - return "ERROR_NOTINGAME\n"; + return "ERROR_NOT_IN_GAME\r\n"; case TTT_ERROR_NOT_PLAYING: - return "ERROR_NOTPLAYING\n"; + return "ERROR_NOT_PLAYING\r\n"; case TTT_ERROR_NOT_YOUR_TURN: - return "ERROR NOTYOURTURN\n"; + return "ERROR NOT_YOUR_TURN\r\n"; /* Not an actual protocol errror, so this should never happen. */ case TTT_ERROR_QUIT_REQUESTED: ASSERT_NOT_REACHED;