diff options
author | Test_User <hax@andrewyu.org> | 2024-06-17 21:15:48 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-06-17 21:15:48 -0400 |
commit | d3e2530cdaa9fb6ce0af737a7ce181a60f88cc45 (patch) | |
tree | e489cb086cd9222e4766276506eae0f138bd936b /protocols/inspircd3.c | |
parent | 351792c4ce9dad51a5464821e843b7e22ff6c6bd (diff) | |
download | haxircd-d3e2530cdaa9fb6ce0af737a7ce181a60f88cc45.tar.gz haxircd-d3e2530cdaa9fb6ce0af737a7ce181a60f88cc45.zip |
Spelling part 2
Diffstat (limited to '')
-rw-r--r-- | protocols/inspircd3.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/protocols/inspircd3.c b/protocols/inspircd3.c index 5593e8b..3b0219d 100644 --- a/protocols/inspircd3.c +++ b/protocols/inspircd3.c @@ -1009,7 +1009,7 @@ void inspircd3_protocol_introduce_channel_to(size_t net, void *handle, struct ch // CAPAB <type> [<args> [, ...]] int inspircd3_protocol_init_handle_capab(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config **config, char is_incoming) { if (argc < 1) { - WRITES(2, STRING("[InspIRCd v3] Invalid CAPAB recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid CAPAB received! (Missing parameters)\r\n")); return -1; } @@ -1023,7 +1023,7 @@ int inspircd3_protocol_init_handle_capab(struct string source, size_t argc, stru // SERVER <address> <password> <always 0> <SID> [key=value, ...] <name> int inspircd3_protocol_init_handle_server(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config **config, char is_incoming) { if (argc < 5) { - WRITES(2, STRING("[InspIRCd v3] Invalid SERVER recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid SERVER received! (Missing parameters)\r\n")); return -1; } @@ -1108,7 +1108,7 @@ int inspircd3_protocol_init_handle_server(struct string source, size_t argc, str // [:source] PING <target> int inspircd3_protocol_handle_ping(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 1) { - WRITES(2, STRING("[InspIRCd v3] Invalid PING recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid PING received! (Missing parameters)\r\n")); return -1; } @@ -1164,7 +1164,7 @@ int inspircd3_protocol_handle_pong(struct string source, size_t argc, struct str // [:source] SERVER <address> <SID> [key=value, ...] <name> int inspircd3_protocol_handle_server(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 3) { - WRITES(2, STRING("[InspIRCd v3] Invalid SERVER recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid SERVER received! (Missing parameters)\r\n")); return -1; } @@ -1184,7 +1184,7 @@ int inspircd3_protocol_handle_server(struct string source, size_t argc, struct s // [:source] SQUIT <SID> [<reason>?] int inspircd3_protocol_handle_squit(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 1) { - WRITES(2, STRING("[InspIRCd v3] Invalid SQUIT recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid SQUIT received! (Missing parameters)\r\n")); return -1; } @@ -1195,11 +1195,11 @@ int inspircd3_protocol_handle_squit(struct string source, size_t argc, struct st struct server_info *a = get_table_index(server_list, source); struct server_info *b = get_table_index(server_list, argv[0]); if (!a || !b) { // Maybe we already RSQUIT it or smth - WRITES(2, STRING("[InspIRCd v3] Invalid SQUIT recieved! (Unknown source or target)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid SQUIT received! (Unknown source or target)\r\n")); return -1; } if (a->protocol != INSPIRCD3_PROTOCOL || b->protocol != INSPIRCD3_PROTOCOL) { // They're trying to use SQUIT for some unrelated server... - WRITES(2, STRING("[InspIRCd v3] Invalid SQUIT recieved! (Bad SID or source)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid SQUIT received! (Bad SID or source)\r\n")); return -1; } @@ -1211,7 +1211,7 @@ int inspircd3_protocol_handle_squit(struct string source, size_t argc, struct st // [:source] RSQUIT <server name> [<reason>?] int inspircd3_protocol_handle_rsquit(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 1) { - WRITES(2, STRING("[InspIRCd v3] Invalid RSQUIT recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid RSQUIT received! (Missing parameters)\r\n")); return -1; } @@ -1249,7 +1249,7 @@ int inspircd3_protocol_handle_rsquit(struct string source, size_t argc, struct s // [:source] UID <UID> <nick_ts> <nick> <host> <vhost> <ident> <address> <user_ts> <modes> [<mode args>] <fullname> int inspircd3_protocol_handle_uid(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 10) { - WRITES(2, STRING("[InspIRCd v3] Invalid UID recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid UID received! (Missing parameters)\r\n")); return -1; } @@ -1272,7 +1272,7 @@ int inspircd3_protocol_handle_uid(struct string source, size_t argc, struct stri break; default: if (dir == '?') { - WRITES(2, STRING("[InspIRCd v3] Invalid UID recieved! (Mode direction not set)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid UID received! (Mode direction not set)\r\n")); return -1; } @@ -1287,7 +1287,7 @@ int inspircd3_protocol_handle_uid(struct string source, size_t argc, struct stri arg_i++; break; default: - WRITES(2, STRING("[InspIRCd v3] Invalid UID recieved! (Unknown mode given)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid UID received! (Unknown mode given)\r\n")); return -1; } } @@ -1296,20 +1296,20 @@ int inspircd3_protocol_handle_uid(struct string source, size_t argc, struct stri } if (arg_i >= argc) { - WRITES(2, STRING("[InspIRCd v3] Invalid UID recieved! (Missing mode arguments)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid UID received! (Missing mode arguments)\r\n")); return -1; } char err; size_t nick_ts = str_to_unsigned(argv[1], &err); if (err) { - WRITES(2, STRING("[InspIRCd v3] Invalid UID recieved! (Invalid nick timestamp)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid UID received! (Invalid nick timestamp)\r\n")); return -1; } size_t user_ts = str_to_unsigned(argv[7], &err); if (err) { - WRITES(2, STRING("[InspIRCd v3] Invalid UID recieved! (Invalid user timestamp)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid UID received! (Invalid user timestamp)\r\n")); return -1; } @@ -1324,14 +1324,14 @@ int inspircd3_protocol_handle_uid(struct string source, size_t argc, struct stri // :source NICK <nick> <timestamp> int inspircd3_protocol_handle_nick(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 2) { - WRITES(2, STRING("[InspIRCd v3] Invalid NICK recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid NICK received! (Missing parameters)\r\n")); return -1; } char err; size_t nick_ts = str_to_unsigned(argv[1], &err); if (err) { - WRITES(2, STRING("[InspIRCd v3] Invalid NICK recieved! (Invalid timestamp)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid NICK received! (Invalid timestamp)\r\n")); return -1; } @@ -1358,7 +1358,7 @@ int inspircd3_protocol_handle_quit(struct string source, size_t argc, struct str return 0; // Maybe KILLed or something if (STRING_EQ(user->server, SID)) { - WRITES(2, STRING("[InspIRCd v3] Invalid QUIT recieved! (Attempting to quit a local user)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid QUIT received! (Attempting to quit a local user)\r\n")); return -1; } @@ -1370,7 +1370,7 @@ int inspircd3_protocol_handle_quit(struct string source, size_t argc, struct str // [:source] KILL <target> [<reason>?] int inspircd3_protocol_handle_kill(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 1) { - WRITES(2, STRING("[InspIRCd v3] Invalid KILL recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid KILL received! (Missing parameters)\r\n")); return -1; } @@ -1416,7 +1416,7 @@ int inspircd3_protocol_handle_kill(struct string source, size_t argc, struct str // :source OPERTYPE <type> int inspircd3_protocol_handle_opertype(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 1) { - WRITES(2, STRING("[InspIRCd v3] Invalid OPERTYPE recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid OPERTYPE received! (Missing parameters)\r\n")); return -1; } @@ -1435,14 +1435,14 @@ int inspircd3_protocol_handle_opertype(struct string source, size_t argc, struct // [:source] FJOIN <channel> <timestamp> <modes> [<mode args>] <userlist: modes,uid [...]> int inspircd3_protocol_handle_fjoin(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { if (argc < 4) { - WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN recieved! (Missing parameters)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN received! (Missing parameters)\r\n")); return -1; } char err; size_t timestamp = str_to_unsigned(argv[1], &err); if (err) { - WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN recieved! (Invalid timestamp)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN received! (Invalid timestamp)\r\n")); return -1; } @@ -1456,7 +1456,7 @@ int inspircd3_protocol_handle_fjoin(struct string source, size_t argc, struct st break; default: if (dir == '?') { - WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN recieved (Mode direction not set)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN received (Mode direction not set)\r\n")); return -1; } switch(inspircd3_protocol_channel_mode_types[(unsigned char)argv[2].data[i]]) { @@ -1470,10 +1470,10 @@ int inspircd3_protocol_handle_fjoin(struct string source, size_t argc, struct st arg_i++; break; case MODE_TYPE_USERS: - WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN recieved! (User mode put in the modes instead of the user list)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN received! (User mode put in the modes instead of the user list)\r\n")); return -1; default: - WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN recieved! (Unknown mode given)\r\n")); + WRITES(2, STRING("[InspIRCd v3] Invalid FJOIN received! (Unknown mode given)\r\n")); return -1; } } @@ -1547,7 +1547,7 @@ int inspircd3_protocol_handle_fjoin(struct string source, size_t argc, struct st //// :source PART <channel> [<reason>] //int inspircd3_protocol_handle_part(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { // if (argc < 1) { -// WRITES(2, STRING("[InspIRCd v3] Invalid PART recieved! (Missing parameters)\r\n")); +// WRITES(2, STRING("[InspIRCd v3] Invalid PART received! (Missing parameters)\r\n")); // return -1; // } // struct string reason; @@ -1572,7 +1572,7 @@ int inspircd3_protocol_handle_fjoin(struct string source, size_t argc, struct st //// [:source] KICK <channel> <user> [<reason>] //int inspircd3_protocol_handle_kick(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { // if (argc < 2) { -// WRITES(2, STRING("[InspIRCd v3] Invalid KICK recieved! (Missing parameters)\r\n")); +// WRITES(2, STRING("[InspIRCd v3] Invalid KICK received! (Missing parameters)\r\n")); // return -1; // } // @@ -1618,7 +1618,7 @@ int inspircd3_protocol_handle_fjoin(struct string source, size_t argc, struct st //// [:source] PRIVMSG <target> <message> //int inspircd3_protocol_handle_privmsg(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { // if (argc < 2) { -// WRITES(2, STRING("[InspIRCd v3] Invalid PRIVMSG recieved! (Missing parameters)\r\n")); +// WRITES(2, STRING("[InspIRCd v3] Invalid PRIVMSG received! (Missing parameters)\r\n")); // return -1; // } // @@ -1630,7 +1630,7 @@ int inspircd3_protocol_handle_fjoin(struct string source, size_t argc, struct st //// [:source] NOTICE <target> <message> //int inspircd3_protocol_handle_notice(struct string source, size_t argc, struct string *argv, size_t net, void *handle, struct server_config *config, char is_incoming) { // if (argc < 2) { -// WRITES(2, STRING("[InspIRCd v3] Invalid NOTICE recieved! (Missing parameters)\r\n")); +// WRITES(2, STRING("[InspIRCd v3] Invalid NOTICE received! (Missing parameters)\r\n")); // return -1; // } // |