73 lines
3.6 KiB
C
73 lines
3.6 KiB
C
/*
|
|
* This file is part of uIRC. (https://git.redxen.eu/caskd/uIRC)
|
|
* Copyright (c) 2019, 2020 Alex-David Denes
|
|
*
|
|
* uIRC is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* any later version.
|
|
*
|
|
* uIRC is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with uIRC. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
#include "structs.h"
|
|
#include <stdbool.h>
|
|
#ifdef UIRC_HELPERS
|
|
#ifndef _UIRC_HELPERS_INCLUDED
|
|
#define _UIRC_HELPERS_INCLUDED
|
|
extern IRC_Message* Assm_cmd_NICK(char* nick);
|
|
extern IRC_Message* Assm_cmd_USER(char* user, char* realname, int modes);
|
|
extern IRC_Message* Assm_cmd_PASS(char* password);
|
|
extern IRC_Message* Assm_cmd_OPER(char* name, char* password);
|
|
extern IRC_Message* Assm_cmd_MODE(char* nick, char* modes, char* modeparams);
|
|
extern IRC_Message* Assm_cmd_SERVICE(char* nickname, char* distribution, char* type, char* info);
|
|
extern IRC_Message* Assm_cmd_QUIT(char* mesg);
|
|
extern IRC_Message* Assm_cmd_SQUIT(char* server, char* comment);
|
|
extern IRC_Message* Assm_cmd_JOIN(char* channels, char* keys);
|
|
extern IRC_Message* Assm_cmd_PART(char* channel, char* message);
|
|
extern IRC_Message* Assm_cmd_TOPIC(char* channel, char* topic);
|
|
extern IRC_Message* Assm_cmd_NAMES(char* channels, char* target);
|
|
extern IRC_Message* Assm_cmd_LIST(char* channels, char* target);
|
|
extern IRC_Message* Assm_cmd_INVITE(char* nick, char* channel);
|
|
extern IRC_Message* Assm_cmd_KICK(char* channels, char* users, char* comment);
|
|
extern IRC_Message* Assm_cmd_PRIVMSG(char* target, char* message);
|
|
extern IRC_Message* Assm_cmd_NOTICE(char* target, char* text);
|
|
extern IRC_Message* Assm_cmd_MOTD(char* target);
|
|
extern IRC_Message* Assm_cmd_LUSERS(char* mask, char* target);
|
|
extern IRC_Message* Assm_cmd_VERSION(char* target);
|
|
extern IRC_Message* Assm_cmd_STATS(char* query, char* target);
|
|
extern IRC_Message* Assm_cmd_LINKS(char* remoteserv, char* servmask);
|
|
extern IRC_Message* Assm_cmd_TIME(char* target);
|
|
extern IRC_Message* Assm_cmd_CONNECT(char* target, char* port, char* remote);
|
|
extern IRC_Message* Assm_cmd_TRACE(char* target);
|
|
extern IRC_Message* Assm_cmd_ADMIN(char* target);
|
|
extern IRC_Message* Assm_cmd_INFO(char* target);
|
|
extern IRC_Message* Assm_cmd_SERVLIST(char* mask, char* type);
|
|
extern IRC_Message* Assm_cmd_SQUERY(char* servicename, char* text);
|
|
extern IRC_Message* Assm_cmd_WHO(char* mask, bool oper);
|
|
extern IRC_Message* Assm_cmd_WHOIS(char* target, char* mask);
|
|
extern IRC_Message* Assm_cmd_WHOWAS(char* nick, char* count, char* target);
|
|
extern IRC_Message* Assm_cmd_KILL(char* nick, char* comment);
|
|
extern IRC_Message* Assm_cmd_PING(char* source, char* target);
|
|
extern IRC_Message* Assm_cmd_PONG(char* source, char* target);
|
|
extern IRC_Message* Assm_cmd_ERROR(char* message);
|
|
extern IRC_Message* Assm_cmd_AWAY(char* mesg);
|
|
extern IRC_Message* Assm_cmd_REHASH(void);
|
|
extern IRC_Message* Assm_cmd_DIE(void);
|
|
extern IRC_Message* Assm_cmd_RESTART(void);
|
|
extern IRC_Message* Assm_cmd_SUMMON(char* user, char* target, char* channel);
|
|
extern IRC_Message* Assm_cmd_USERS(char* target);
|
|
extern IRC_Message* Assm_cmd_WALLOPS(char* text);
|
|
extern IRC_Message* Assm_cmd_USERHOST(char* users[]);
|
|
extern IRC_Message* Assm_cmd_ISON(char* users[]);
|
|
|
|
extern void Tok_cmd_PING(IRC_Message* mesg, char* source, char* target);
|
|
extern void Tok_FArgOpt(IRC_Message* mesg, char** optarg, char** reqarg);
|
|
#endif
|
|
#endif
|