This repository has been archived on 2021-04-17. You can view files and clone it, but cannot push or open issues or pull requests.
2020-07-10 16:03:26 +00:00
|
|
|
#include "../include/uirc.h"
|
2020-09-01 09:49:37 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2020-07-10 16:03:26 +00:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2020-07-22 17:18:44 +00:00
|
|
|
char mesg[513] =
|
|
|
|
#ifdef UIRC_IRCV3
|
|
|
|
"@+msgid=1s32;time;+reply;account=x"
|
|
|
|
#endif
|
|
|
|
":nick!user@host QUIT arg1 :Finished!";
|
2020-07-10 16:03:26 +00:00
|
|
|
IRC_Message parseout;
|
|
|
|
int res = 0;
|
|
|
|
if ((res = Tok_mesg(mesg, &parseout)) <= 0) {
|
|
|
|
printf("String could not be tokenized. %i\n", res);
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|