/*
* mr_test
- * parv[0] = sender prefix
* parv[1] = parameter
*/
/*
* mclient_test
- * parv[0] = sender prefix
* parv[1] = parameter
*/
static int
/*
* mrclient_test
- * parv[0] = sender prefix
* parv[1] = parameter
*/
static int
/*
* mserver_test
- * parv[0] = sender prefix
* parv[1] = parameter
*/
static int
/*
* moper_test
- * parv[0] = sender prefix
* parv[1] = parameter
*/
static int
/*
** mo_findforwards
-** parv[0] = sender prefix
** parv[1] = channel
*/
static int
/*
** mo_test
-** parv[0] = sender prefix
** parv[1] = parameter
*/
static int
/*
** mo_ojoin
-** parv[0] = sender prefix
** parv[1] = channel
*/
static int
/*
** m_okick
-** parv[0] = sender prefix
** parv[1] = channel
** parv[2] = client to kick
** parv[3] = kick comment
/*
** mo_olist
-** parv[0] = sender prefix
** parv[1] = channel
*/
static int
/*
* mo_omode - MODE command handler
- * parv[0] - sender
* parv[1] - channel
*/
static int
/*
** mo_opme
-** parv[0] = sender prefix
** parv[1] = channel
*/
static int
/*
* mr_webirc - webirc message handler
- * parv[0] = sender prefix
* parv[1] = password
* parv[2] = fake username (we ignore this)
* parv[3] = fake hostname
*
* parv a NULL terminated list of parameter pointers,
*
- * parv[0], sender (prefix string), if not present
- * this points to an empty string.
+ * parv[0], unused for historical reasons (formerly
+ * sender name)
* parv[1]...parv[parc-1]
* pointers to additional parameters
* parv[parc] == NULL, *always*
*
- * note: it is guaranteed that parv[0]..parv[parc-1] are all
+ * note: it is guaranteed that parv[1]..parv[parc-1] are all
* non-NULL pointers.
*/
* although this is called internally from other functions
* --msa
*
- * parv[0] = sender prefix
* parv[*] = parameters
*/
int
/*
* m_join
- * parv[0] = sender prefix
* parv[1] = channel
* parv[2] = channel password (key)
*/
/*
* ms_join
- * parv[0] = sender prefix
* parv[1] = channel TS
* parv[2] = channel
* parv[3] = "+", formerly channel modes but now unused
/*
** m_kick
-** parv[0] = sender prefix
** parv[1] = channel
** parv[2] = client to kick
** parv[3] = kick comment
/*
** mo_kill
-** parv[0] = sender prefix
** parv[1] = kill victim
** parv[2] = kill path
*/
/*
* ms_kill
- * parv[0] = sender prefix
* parv[1] = kill victim
* parv[2] = kill path and reason
*/
/*
* m_mode - MODE command handler
- * parv[0] - sender
* parv[1] - channel
*/
static int
struct Client *, int, const char **, time_t, const char *);
/* mr_nick()
- * parv[0] = sender prefix
* parv[1] = nickname
*/
static int
}
/* m_nick()
- * parv[0] = sender prefix
* parv[1] = nickname
*/
static int
/* mc_nick()
*
* server -> server nick change
- * parv[0] = sender prefix
* parv[1] = nickname
* parv[2] = TS when nick change
*/
/*
** m_part
-** parv[0] = sender prefix
** parv[1] = channel
** parv[2] = reason
*/
/*
** m_quit
-** parv[0] = sender prefix
** parv[1] = comment
*/
static int
/*
** ms_quit
-** parv[0] = sender prefix
** parv[1] = comment
*/
static int
/*
* mr_server - SERVER message handler
- * parv[0] = sender prefix
* parv[1] = servername
* parv[2] = serverinfo/hopcount
* parv[3] = serverinfo
/*
* ms_server - SERVER message handler
- * parv[0] = sender prefix
* parv[1] = servername
* parv[2] = serverinfo/hopcount
* parv[3] = serverinfo
/*
* mo_squit - SQUIT message handler
- * parv[0] = sender prefix
* parv[1] = server name
* parv[2] = comment
*/
/*
* ms_squit - SQUIT message handler
- * parv[0] = sender prefix
* parv[1] = server name
* parv[2] = comment
*/
/*
* m_accept - ACCEPT command handler
- * parv[0] = sender prefix
* parv[1] = servername
*/
static int
/*
* mr_admin - ADMIN command handler
- * parv[0] = sender prefix
* parv[1] = servername
*/
static int
/*
* m_admin - ADMIN command handler
- * parv[0] = sender prefix
* parv[1] = servername
*/
static int
/*
* ms_admin - ADMIN command handler, used for OPERS as well
- * parv[0] = sender prefix
* parv[1] = servername
*/
static int
/*
** m_away
-** parv[0] = sender prefix
** parv[1] = away message
*/
static int
/*
* mr_capab - CAPAB message handler
- * parv[0] = sender prefix
* parv[1] = space-separated list of capabilities
*
*/
/*
* m_challenge - generate RSA challenge for wouldbe oper
- * parv[0] = sender prefix
* parv[1] = operator to challenge for, or +response
*
*/
/*
* me_realhost
- * parv[0] = origin
* parv[1] = real host
*
* Yes this contains a little race condition if someone does a whois
/*
* ms_chghost
- * parv[0] = origin
* parv[1] = target
* parv[2] = host
*/
/*
* me_chghost
- * parv[0] = origin
* parv[1] = target
* parv[2] = host
*/
/*
* mo_chghost
- * parv[0] = origin
* parv[1] = target
* parv[2] = host
*/
* Added by Jto 11 Feb 1989
*
* m_connect
- * parv[0] = sender prefix
* parv[1] = servername
* parv[2] = port number
* parv[3] = remote server
* Added by Jto 11 Feb 1989
*
* m_connect
- * parv[0] = sender prefix
* parv[1] = servername
* parv[2] = port number
* parv[3] = remote server
/*
* m_etrace
- * parv[0] = sender prefix
* parv[1] = options [or target]
* parv[2] = [target]
*/
/*
* m_help - HELP message handler
- * parv[0] = sender prefix
*/
static int
m_help(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
/*
* mo_help - HELP message handler
- * parv[0] = sender prefix
*/
static int
mo_help(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
/*
* mo_uhelp - HELP message handler
* This is used so that opers can view the user help file without deopering
- * parv[0] = sender prefix
*/
static int
mo_uhelp(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
/*
** m_info
-** parv[0] = sender prefix
** parv[1] = servername
*/
static int
/*
** mo_info
-** parv[0] = sender prefix
** parv[1] = servername
*/
static int
static void add_invite(struct Channel *, struct Client *);
/* m_invite()
- * parv[0] - sender prefix
* parv[1] - user to invite
* parv[2] - channel name
*/
DECLARE_MODULE_AV1(knock, NULL, NULL, knock_clist, NULL, NULL, "$Revision: 3570 $");
/* m_knock
- * parv[0] = sender prefix
* parv[1] = channel
*
* The KNOCK command has the following syntax:
/*
* m_links - LINKS message handler
- * parv[0] = sender prefix
* parv[1] = servername mask
* or
- * parv[0] = sender prefix
* parv[1] = server to query
* parv[2] = servername mask
*/
}
/* m_list()
- * parv[0] = sender prefix
* parv[1] = channel
*
* XXX - With SAFELIST, do we really need to continue pacing?
}
/* mo_list()
- * parv[0] = sender prefix
* parv[1] = channel
*/
static int mo_list(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
/*
* m_locops - LOCOPS message handler
* (write to *all* local opers currently online)
- * parv[0] = sender prefix
* parv[1] = message text
*/
static int
/*
* m_lusers - LUSERS message handler
- * parv[0] = sender
* parv[1] = host/server mask.
* parv[2] = server to query
*
/*
* ms_lusers - LUSERS message handler for servers and opers
- * parv[0] = sender
* parv[1] = host/server mask.
* parv[2] = server to query
*
static char buf[BUFSIZE];
/* m_map
-** parv[0] = sender prefix
*/
static int
m_map(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
/*
** mo_map
-** parv[0] = sender prefix
*/
static int
mo_map(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
/*
** m_motd
-** parv[0] = sender prefix
** parv[1] = servername
*/
static int
/*
** mo_motd
-** parv[0] = sender prefix
** parv[1] = servername
*/
static int
/*
* m_names
- * parv[0] = sender prefix
* parv[1] = channel
*/
static int
/*
* m_oper
- * parv[0] = sender prefix
* parv[1] = oper name
* parv[2] = oper password
*/
*
*
* mr_pass - PASS message handler
- * parv[0] = sender prefix
* parv[1] = password
* parv[2] = "TS" if this server supports TS.
* parv[3] = optional TS version field -- needed for TS6
/*
** m_ping
-** parv[0] = sender prefix
** parv[1] = origin
** parv[2] = destination
*/
/*
** mr_dumb_proxy
-** parv[0] = sender prefix
** parv[1] = comment
*/
static int
/*
* mo_resv()
- * parv[0] = sender prefix
* parv[1] = channel/nick to forbid
* parv[2] = reason
*/
}
/* ms_resv()
- * parv[0] = sender prefix
* parv[1] = target server
* parv[2] = channel/nick to forbid
* parv[3] = reason
/*
* mo_unresv()
- * parv[0] = sender prefix
* parv[1] = channel/nick to unforbid
*/
static int
}
/* ms_unresv()
- * parv[0] = sender prefix
* parv[1] = target server
* parv[2] = resv to remove
*/
/*
* m_scan
- * parv[0] = sender prefix
* parv[1] = options [or target]
* parv[2] = [target]
*/
/*
** me_nickdelay
-** parv[0] = sender prefix
** parv[1] = duration in seconds (0 to remove)
** parv[2] = nick
*/
/*
* me_snote
- * parv[0] = sender prefix
* parv[1] = snomask letter
* parv[2] = message
*/
/*
* m_stats by fl_
- * parv[0] = sender prefix
* parv[1] = stat letter/command
* parv[2] = (if present) server/mask in stats L, or target
*
/*
* ms_svinfo - SVINFO message handler
- * parv[0] = sender prefix
* parv[1] = TS_CURRENT for the server
* parv[2] = TS_MIN for the server
* parv[3] = unused, send 0
/*
* m_time
- * parv[0] = sender prefix
* parv[1] = servername
*/
static int
/*
* m_topic
- * parv[0] = sender prefix
* parv[1] = channel name
* parv[2] = new topic, if setting topic
*/
/*
* ms_topic
- * parv[0] = sender prefix
* parv[1] = channel name
* parv[2] = topic_info
* parv[3] = topic_info time
/*
* m_trace
- * parv[0] = sender prefix
* parv[1] = servername
*/
static int
/*
* m_users
- * parv[0] = sender prefix
* parv[1] = servername
*/
static int
/*
* m_version - VERSION command handler
- * parv[0] = sender prefix
* parv[1] = remote server
*/
static int
/*
* mo_version - VERSION command handler
- * parv[0] = sender prefix
* parv[1] = remote server
*/
static int
/*
* ms_operwall - OPERWALL message handler
* (write to *all* local opers currently online)
- * parv[0] = sender prefix
* parv[1] = message text
*/
static int
/*
** m_who
-** parv[0] = sender prefix
** parv[1] = nickname mask list
** parv[2] = additional selection flag and format options
*/
/*
* m_whois
- * parv[0] = sender prefix
* parv[1] = nickname masklist
*/
static int
/*
* ms_whois
- * parv[0] = sender prefix
* parv[1] = server to reply
* parv[2] = nickname to whois
*/
/*
** m_whowas
-** parv[0] = sender prefix
** parv[1] = nickname queried
*/
static int
*/
static char *sender;
-/* parv[0] == source, and parv[LAST] == NULL */
+/* parv[0] is not used, and parv[LAST] == NULL */
static char *para[MAXPARA + 2];
static void cancel_clients(struct Client *, struct Client *, char *);
if(*buf == '\0')
return x;
}
- /* we can go upto parv[MAXPARA], as parv[0] is taken by source */
+ /* we can go upto parv[MAXPARA], as parv[0] is skipped */
while (x < MAXPARA);
if(*p == ':')
/*
*
* parc number of arguments ('sender' counted as one!)
- * parv[0] pointer to 'sender' (may point to empty string) (not used)
* parv[1]..parv[parc-1]
* pointers to additional parameters, this is a NULL
* terminated list (parv[parc] == NULL).
* user_mode - set get current users mode
*
* m_umode() added 15/10/91 By Darren Reed.
- * parv[0] - sender
* parv[1] - username to change mode for
* parv[2] - modes to change
*/
/*
** mo_clearchan
-** parv[0] = sender prefix
** parv[1] = channel
*/
static int
/*
* m_forcejoin
- * parv[0] = sender prefix
* parv[1] = user to force
* parv[2] = channel to force them into
*/