mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
387f54199e
commit
f2acdbc382
@ -1 +1,25 @@
|
||||
# Aliases for nickserv, chanserv, operserv, memoserv
<alias text="NICKSERV" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
<alias text="CHANSERV" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
<alias text="OPERSERV" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
<alias text="MEMOSERV" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
<alias text="HOSTSERV" replace="PRIVMSG HostServ :$2-" requires="MemoServ" uline="yes">
<alias text="BOTSERV" replace="PRIVMSG BotServ :$2-" requires="BotServ" uline="yes">
# Note: We can't have a shorthand version of this, it conflicts with HS for helpserv
<alias text="HELPSERV" replace="PRIVMSG HelpServ :$2-" requires="HelpServ" uline="yes">
# Shorthand aliases for nickserv, chanserv, operserv, memoserv
<alias text="NS" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
<alias text="CS" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
<alias text="OS" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
<alias text="MS" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
<alias text="HS" replace="PRIVMSG HostServ :$2-" requires="HostServ" uline="yes">
<alias text="BS" replace="PRIVMSG BotServ :$2-" requires="BotServ" uline="yes">
# /id [channel] <password>
# Identify for a channel or nickname
<alias text="ID" format="#*" replace="PRIVMSG ChanServ :IDENTIFY $2 $3" requires="ChanServ" uline="yes">
<alias text="ID" format="*" replace="PRIVMSG NickServ :IDENTIFY $2" requires="NickServ" uline="yes">
|
||||
# Aliases for nickserv, chanserv, operserv, memoserv
|
||||
<alias text="NICKSERV" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
|
||||
<alias text="CHANSERV" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
|
||||
<alias text="OPERSERV" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
|
||||
<alias text="MEMOSERV" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
|
||||
<alias text="HOSTSERV" replace="PRIVMSG HostServ :$2-" requires="MemoServ" uline="yes">
|
||||
<alias text="BOTSERV" replace="PRIVMSG BotServ :$2-" requires="BotServ" uline="yes">
|
||||
|
||||
# Note: We can't have a shorthand version of this, it conflicts with HS for helpserv
|
||||
<alias text="HELPSERV" replace="PRIVMSG HelpServ :$2-" requires="HelpServ" uline="yes">
|
||||
|
||||
# Shorthand aliases for nickserv, chanserv, operserv, memoserv
|
||||
<alias text="NS" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
|
||||
<alias text="CS" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
|
||||
<alias text="OS" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
|
||||
<alias text="MS" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
|
||||
<alias text="HS" replace="PRIVMSG HostServ :$2-" requires="HostServ" uline="yes">
|
||||
<alias text="BS" replace="PRIVMSG BotServ :$2-" requires="BotServ" uline="yes">
|
||||
|
||||
|
||||
# /id [channel] <password>
|
||||
# Identify for a channel or nickname
|
||||
<alias text="ID" format="#*" replace="PRIVMSG ChanServ :IDENTIFY $2 $3" requires="ChanServ" uline="yes">
|
||||
<alias text="ID" format="*" replace="PRIVMSG NickServ :IDENTIFY $2" requires="NickServ" uline="yes">
|
||||
|
||||
|
@ -1 +1,19 @@
|
||||
# Aliases for nickserv, chanserv, operserv, memoserv
<alias text="NICKSERV" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
<alias text="CHANSERV" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
<alias text="OPERSERV" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
<alias text="MEMOSERV" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
<alias text="GAMESERV" replace="PRIVMSG GameServ :$2-" requires="GameServ" uline="yes">
# Shorthand aliases for nickserv, chanserv, operserv, memoserv
<alias text="NS" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
<alias text="CS" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
<alias text="OS" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
<alias text="MS" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
<alias text="GS" replace="PRIVMSG GameServ :$2-" requires="GameServ" uline="yes">
# /id [channel] <password>
# Identify for a channel or nickname
<alias text="ID" format="#*" replace="PRIVMSG ChanServ :IDENTIFY $2 $3" requires="ChanServ" uline="yes">
<alias text="ID" format="*" replace="PRIVMSG NickServ :IDENTIFY $2-" requires="NickServ" uline="yes">
|
||||
# Aliases for nickserv, chanserv, operserv, memoserv
|
||||
<alias text="NICKSERV" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
|
||||
<alias text="CHANSERV" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
|
||||
<alias text="OPERSERV" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
|
||||
<alias text="MEMOSERV" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
|
||||
<alias text="GAMESERV" replace="PRIVMSG GameServ :$2-" requires="GameServ" uline="yes">
|
||||
|
||||
# Shorthand aliases for nickserv, chanserv, operserv, memoserv
|
||||
<alias text="NS" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
|
||||
<alias text="CS" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
|
||||
<alias text="OS" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
|
||||
<alias text="MS" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
|
||||
<alias text="GS" replace="PRIVMSG GameServ :$2-" requires="GameServ" uline="yes">
|
||||
|
||||
# /id [channel] <password>
|
||||
# Identify for a channel or nickname
|
||||
<alias text="ID" format="#*" replace="PRIVMSG ChanServ :IDENTIFY $2 $3" requires="ChanServ" uline="yes">
|
||||
<alias text="ID" format="*" replace="PRIVMSG NickServ :IDENTIFY $2-" requires="NickServ" uline="yes">
|
||||
|
||||
|
@ -1 +1,19 @@
|
||||
# Aliases for nickserv, chanserv, operserv, memoserv
<alias text="NICKSERV" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
<alias text="CHANSERV" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
<alias text="OPERSERV" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
<alias text="MEMOSERV" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
<alias text="STATSERV" replace="PRIVMSG StatServ :$2-" requires="StatServ" uline="yes" operonly="yes">
# Shorthand aliases for nickserv, chanserv, operserv, memoserv
<alias text="NS" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
<alias text="CS" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
<alias text="OS" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
<alias text="MS" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
<alias text="SS" replace="PRIVMSG StatServ :$2-" requires="StatServ" uline="yes" operonly="yes">
# /id [channel] <password>
# Identify for a channel or nickname
<alias text="ID" format="#*" replace="PRIVMSG ChanServ :IDENTIFY $2 $3" requires="ChanServ" uline="yes">
<alias text="ID" format="*" replace="PRIVMSG NickServ :IDENTIFY $2" requires="NickServ" uline="yes">
|
||||
# Aliases for nickserv, chanserv, operserv, memoserv
|
||||
<alias text="NICKSERV" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
|
||||
<alias text="CHANSERV" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
|
||||
<alias text="OPERSERV" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
|
||||
<alias text="MEMOSERV" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
|
||||
<alias text="STATSERV" replace="PRIVMSG StatServ :$2-" requires="StatServ" uline="yes" operonly="yes">
|
||||
|
||||
# Shorthand aliases for nickserv, chanserv, operserv, memoserv
|
||||
<alias text="NS" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">
|
||||
<alias text="CS" replace="PRIVMSG ChanServ :$2-" requires="ChanServ" uline="yes">
|
||||
<alias text="OS" replace="PRIVMSG OperServ :$2-" requires="OperServ" uline="yes" operonly="yes">
|
||||
<alias text="MS" replace="PRIVMSG MemoServ :$2-" requires="MemoServ" uline="yes">
|
||||
<alias text="SS" replace="PRIVMSG StatServ :$2-" requires="StatServ" uline="yes" operonly="yes">
|
||||
|
||||
# /id [channel] <password>
|
||||
# Identify for a channel or nickname
|
||||
<alias text="ID" format="#*" replace="PRIVMSG ChanServ :IDENTIFY $2 $3" requires="ChanServ" uline="yes">
|
||||
<alias text="ID" format="*" replace="PRIVMSG NickServ :IDENTIFY $2" requires="NickServ" uline="yes">
|
||||
|
||||
|
@ -1 +1,15 @@
|
||||
# Configuration file for m_censor.so (1.0.0.0)
# C.J.Edwards May 2004.
#
# The tags for this module are formatted as follows:
#
# <badword text="simple word"
# replace="text to replace with">
#
# You can specify <badword text="simple word" replace="">
# to block lines containing the word
<badword text="shit" replace="poo">
<badword text="fuck" replace="(censored)">
|
||||
# Configuration file for m_censor.so (1.0.0.0)
|
||||
# C.J.Edwards May 2004.
|
||||
#
|
||||
|
||||
# The tags for this module are formatted as follows:
|
||||
#
|
||||
# <badword text="simple word"
|
||||
# replace="text to replace with">
|
||||
#
|
||||
# You can specify <badword text="simple word" replace="">
|
||||
# to block lines containing the word
|
||||
|
||||
<badword text="shit" replace="poo">
|
||||
<badword text="fuck" replace="(censored)">
|
||||
|
||||
|
@ -1 +1,52 @@
|
||||
# Configuration file for m_filter.so and m_filter_pcre.so
# The tags for this module are formatted as follows:
#
# <keyword pattern="any glob pattern here"
# reason="reason for filtering"
# action="action to take"
# flags="filter flags"
# duration="optional length of gline">
#
# Valid actions for 'action' are:
#
# block This blocks the line, sends out a notice to all opers with
# +s and informs the user that their message was blocked.
#
# silent This blocks the line only, and informs the user their message
# was blocked, but does not notify opers.
#
# none This action causes nothing to be done except logging. This
# is the default action if none is specified.
#
# kill This disconnects the user, with the 'reason' parameter as
# the kill reason.
#
# gline G-LINE the user for 'duration' length of time. Durations may
# be specified using the notation 1y2d3h4m6s in a similar way to
# other glines, omitting the duration or setting it to 0 makes
# any glines set by this filter be permanent.
#
# You can add filters from IRC using the /FILTER command. If you do this, they
# will be set globally to your entire network.
#
# Valid characters for 'flags' are one or more of:
#
# p: Block private and channel messages
# n: Block private and channel notices
# P: Block part messages
# q: Block quit messages
# o: Don't match against opers
# *: Represents all of the above flags
# -: Does nothing, a non-op for when you do not want to specify any flags
# Example filters for m_filter:
#
# <keyword pattern="*qwerty*" reason="You qwertied!" action="block" flags="pn">
# <keyword pattern="*killmenow*" reason="As you request." action="kill" flags="*">
# <keyword pattern="*blah*" reason="Dont blah!" action="gline" duration="1d6h" flags="-">
# An example regexp filter for m_filter_pcre:
#
# <keyword pattern="^blah.*?$" reason="Dont blah!" action="gline" duration="1d6h" flags="pnPq">
|
||||
# Configuration file for m_filter.so and m_filter_pcre.so
|
||||
|
||||
# The tags for this module are formatted as follows:
|
||||
#
|
||||
# <keyword pattern="any glob pattern here"
|
||||
# reason="reason for filtering"
|
||||
# action="action to take"
|
||||
# flags="filter flags"
|
||||
# duration="optional length of gline">
|
||||
#
|
||||
# Valid actions for 'action' are:
|
||||
#
|
||||
# block This blocks the line, sends out a notice to all opers with
|
||||
# +s and informs the user that their message was blocked.
|
||||
#
|
||||
# silent This blocks the line only, and informs the user their message
|
||||
# was blocked, but does not notify opers.
|
||||
#
|
||||
# none This action causes nothing to be done except logging. This
|
||||
# is the default action if none is specified.
|
||||
#
|
||||
# kill This disconnects the user, with the 'reason' parameter as
|
||||
# the kill reason.
|
||||
#
|
||||
# gline G-LINE the user for 'duration' length of time. Durations may
|
||||
# be specified using the notation 1y2d3h4m6s in a similar way to
|
||||
# other glines, omitting the duration or setting it to 0 makes
|
||||
# any glines set by this filter be permanent.
|
||||
#
|
||||
# You can add filters from IRC using the /FILTER command. If you do this, they
|
||||
# will be set globally to your entire network.
|
||||
#
|
||||
# Valid characters for 'flags' are one or more of:
|
||||
#
|
||||
# p: Block private and channel messages
|
||||
# n: Block private and channel notices
|
||||
# P: Block part messages
|
||||
# q: Block quit messages
|
||||
# o: Don't match against opers
|
||||
# *: Represents all of the above flags
|
||||
# -: Does nothing, a non-op for when you do not want to specify any flags
|
||||
|
||||
# Example filters for m_filter:
|
||||
#
|
||||
# <keyword pattern="*qwerty*" reason="You qwertied!" action="block" flags="pn">
|
||||
# <keyword pattern="*killmenow*" reason="As you request." action="kill" flags="*">
|
||||
# <keyword pattern="*blah*" reason="Dont blah!" action="gline" duration="1d6h" flags="-">
|
||||
|
||||
# An example regexp filter for m_filter_pcre:
|
||||
#
|
||||
# <keyword pattern="^blah.*?$" reason="Dont blah!" action="gline" duration="1d6h" flags="pnPq">
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1,83 @@
|
||||
# Sample configuration file for m_helpop.so
# You can either copy this into your conf folder and set up the module to use it,
# or you can customize the responses for your network and/or add more.
#
# The way the new helpop system works is simple. You use one or more helpop tags.
# <helpop key="moo" value="something here">.
# key is what the user is looking for (i.e. /helpop moo), and value is what they get back
# (note that it can span multiple lines!).
# -- w00t 16/dec/2006
#
<helpop key="start" value=" InspIRCd help system
--------------------
-
This system provides help for commands and modes.
Specify your question or a command name as the
parameter for this command.
-
/HELPOP COMMANDS - To see a list of commands
/HELPOP UMODES - To see a list of user modes
/HELPOP CHMODES - To see a list of channel modes">
<helpop key="nohelp" value="There is no help for the topic
You searched for. Please try again.">
<helpop key="commands" value="User Commands
-------------
USER NICK QUIT VERSION PING
PONG ADMIN PRIVMSG INFO TIME
WHOIS NOTICE JOIN NAMES PART
KICK MODE TOPIC WHO MOTD
RULES OPER LIST LUSERS STATS
USERHOST AWAY ISON SUMMON USERS
INVITE PASS WHOWAS LINKS MAP
COMMANDS MODULES
Oper Commands
-------------
DIE RESTART KILL REHASH TRACE
CONNECT SQUIT MODULES KLINE ZLINE
QLINE GLINE ELINE">
<helpop key="umodes" value="User Modes
----------
o Is an IRC operator
i Is invisible to /WHO
w Can receive wallops messages
s Can receive server notices
n [mask] Can receive server notices specified by [mask], or * for all.
x Cloaked hostname (requires cloaking module)
h Will receive helpops notification (requires helpop module)">
<helpop key="chmodes" value="Channel Modes
-------------
v [nickname] Gives voice to [nickname] (can talk on +m channel)
h [nickname] Gives halfops to [nickname] (requires halfop module)
o [nickname] Gives ops to [nickname]
b [hostmask] Bans [hostmask] on the channel
a [nickname] Give protected status to [nickname] (+q only)
q [nickname] Give founder status to [nickname] (ulines only)
i Make the channel invite only, must /INVITE users
k [key] Set the channel key (password) to [key]
l [limit] Set the maximum possible users to [limit]
m Enable moderation. Only +vo(h) can speak
n Only users who are members of the channel may message it
p Make channel private (hide from /LIST)
s Make channel secret (can't be used at the same time as +p)
O Channel is IRCops only (can only be set by IRCops)
t Only halfops and above can change the topic
Q Only U-Lined servers/nicks can kick
T Only halfops/ops can send NOTICEs to the channel
C No CTCPs allowed to the channel
c mIRC colour codes blocked on the channel
K No /KNOCK allowed to channel (if knock module is loaded)
L [channel] If the channel is full, redirect users to [channel]
N No nickchanges while on the channel
-------------
NOTE: A large number of these modes are dependent upon server-side modules
being loaded by a server/network administrator. The actual modes available
on your network may be very different to this list. Please consult your
help channel if you have any questions.">
|
||||
# Sample configuration file for m_helpop.so
|
||||
# You can either copy this into your conf folder and set up the module to use it,
|
||||
# or you can customize the responses for your network and/or add more.
|
||||
#
|
||||
# The way the new helpop system works is simple. You use one or more helpop tags.
|
||||
# <helpop key="moo" value="something here">.
|
||||
# key is what the user is looking for (i.e. /helpop moo), and value is what they get back
|
||||
# (note that it can span multiple lines!).
|
||||
# -- w00t 16/dec/2006
|
||||
#
|
||||
|
||||
<helpop key="start" value=" InspIRCd help system
|
||||
--------------------
|
||||
-
|
||||
This system provides help for commands and modes.
|
||||
Specify your question or a command name as the
|
||||
parameter for this command.
|
||||
-
|
||||
/HELPOP COMMANDS - To see a list of commands
|
||||
/HELPOP UMODES - To see a list of user modes
|
||||
/HELPOP CHMODES - To see a list of channel modes">
|
||||
|
||||
<helpop key="nohelp" value="There is no help for the topic
|
||||
You searched for. Please try again.">
|
||||
|
||||
<helpop key="commands" value="User Commands
|
||||
-------------
|
||||
USER NICK QUIT VERSION PING
|
||||
PONG ADMIN PRIVMSG INFO TIME
|
||||
WHOIS NOTICE JOIN NAMES PART
|
||||
KICK MODE TOPIC WHO MOTD
|
||||
RULES OPER LIST LUSERS STATS
|
||||
USERHOST AWAY ISON SUMMON USERS
|
||||
INVITE PASS WHOWAS LINKS MAP
|
||||
COMMANDS MODULES
|
||||
|
||||
Oper Commands
|
||||
-------------
|
||||
DIE RESTART KILL REHASH TRACE
|
||||
CONNECT SQUIT MODULES KLINE ZLINE
|
||||
QLINE GLINE ELINE">
|
||||
|
||||
|
||||
<helpop key="umodes" value="User Modes
|
||||
----------
|
||||
o Is an IRC operator
|
||||
i Is invisible to /WHO
|
||||
w Can receive wallops messages
|
||||
s Can receive server notices
|
||||
n [mask] Can receive server notices specified by [mask], or * for all.
|
||||
x Cloaked hostname (requires cloaking module)
|
||||
h Will receive helpops notification (requires helpop module)">
|
||||
|
||||
<helpop key="chmodes" value="Channel Modes
|
||||
-------------
|
||||
v [nickname] Gives voice to [nickname] (can talk on +m channel)
|
||||
h [nickname] Gives halfops to [nickname] (requires halfop module)
|
||||
o [nickname] Gives ops to [nickname]
|
||||
b [hostmask] Bans [hostmask] on the channel
|
||||
a [nickname] Give protected status to [nickname] (+q only)
|
||||
q [nickname] Give founder status to [nickname] (ulines only)
|
||||
i Make the channel invite only, must /INVITE users
|
||||
k [key] Set the channel key (password) to [key]
|
||||
l [limit] Set the maximum possible users to [limit]
|
||||
m Enable moderation. Only +vo(h) can speak
|
||||
n Only users who are members of the channel may message it
|
||||
p Make channel private (hide from /LIST)
|
||||
s Make channel secret (can't be used at the same time as +p)
|
||||
O Channel is IRCops only (can only be set by IRCops)
|
||||
t Only halfops and above can change the topic
|
||||
Q Only U-Lined servers/nicks can kick
|
||||
T Only halfops/ops can send NOTICEs to the channel
|
||||
C No CTCPs allowed to the channel
|
||||
c mIRC colour codes blocked on the channel
|
||||
K No /KNOCK allowed to channel (if knock module is loaded)
|
||||
L [channel] If the channel is full, redirect users to [channel]
|
||||
N No nickchanges while on the channel
|
||||
-------------
|
||||
NOTE: A large number of these modes are dependent upon server-side modules
|
||||
being loaded by a server/network administrator. The actual modes available
|
||||
on your network may be very different to this list. Please consult your
|
||||
help channel if you have any questions.">
|
||||
|
||||
|
@ -1 +1,40 @@
|
||||
_____ _____ _____ _____ _
|_ _| |_ _| | __ \ / ____| | |
| | _ __ ___ _ __ | | | |__) || | __| |
| | | '_ \ / __| | '_ \ | | | _ / | | / _` |
_| |_ | | | | \__ \ | |_) | _| |_ | | \ \ | |____ | (_| |
|_____| |_| |_| |___/ | .__/ |_____| |_| \_\ \_____| \__,_|
__________________| |_______________________________
|__________________|_|_______________________________|
Putting the ricer in IRCer since 2007
//\
V \ WELCOME TO AN INSPIRCD NETWORK
\ \_ If you see this, I am probably new
\,'.`-. If I'm not new, my owner is lazy.
|\ `. `.
( \ `. `-. _,.-:\
\ \ `. `-._ __..--' ,-';/
\ `. `-. `-..___..---' _.--' ,'/
`. `. `-._ __..--' ,' /
`. `-_ ``--..'' _.-' ,'
`-_ `-.___ __,--' ,'
`-.__ `----""" __.-'
`--..____..--'
-- To change, see inspircd.motd.example --
/ \
/ * Web: http://www.inspircd.org \
| * Blog: http://www.inspircd.com |
| * IRC: irc.inspircd.org #inspircd |
| * Docs: http://www.inspircd.org/wiki |
| |
| We hope you like this software. Please do |
| make sure you put some effort into |
| your configuration though so you like it. |
| Enjoy. |
| |
\ -- The InspIRCd Team /
-------------------------------------------
|
||||
|
||||
_____ _____ _____ _____ _
|
||||
|_ _| |_ _| | __ \ / ____| | |
|
||||
| | _ __ ___ _ __ | | | |__) || | __| |
|
||||
| | | '_ \ / __| | '_ \ | | | _ / | | / _` |
|
||||
_| |_ | | | | \__ \ | |_) | _| |_ | | \ \ | |____ | (_| |
|
||||
|_____| |_| |_| |___/ | .__/ |_____| |_| \_\ \_____| \__,_|
|
||||
__________________| |_______________________________
|
||||
|__________________|_|_______________________________|
|
||||
|
||||
Putting the ricer in IRCer since 2007
|
||||
|
||||
//\
|
||||
V \ WELCOME TO AN INSPIRCD NETWORK
|
||||
\ \_ If you see this, I am probably new
|
||||
\,'.`-. If I'm not new, my owner is lazy.
|
||||
|\ `. `.
|
||||
( \ `. `-. _,.-:\
|
||||
\ \ `. `-._ __..--' ,-';/
|
||||
\ `. `-. `-..___..---' _.--' ,'/
|
||||
`. `. `-._ __..--' ,' /
|
||||
`. `-_ ``--..'' _.-' ,'
|
||||
`-_ `-.___ __,--' ,'
|
||||
`-.__ `----""" __.-'
|
||||
`--..____..--'
|
||||
|
||||
-- To change, see inspircd.motd.example --
|
||||
/ \
|
||||
/ * Web: http://www.inspircd.org \
|
||||
| * Blog: http://www.inspircd.com |
|
||||
| * IRC: irc.inspircd.org #inspircd |
|
||||
| * Docs: http://www.inspircd.org/wiki |
|
||||
| |
|
||||
| We hope you like this software. Please do |
|
||||
| make sure you put some effort into |
|
||||
| your configuration though so you like it. |
|
||||
| Enjoy. |
|
||||
| |
|
||||
\ -- The InspIRCd Team /
|
||||
-------------------------------------------
|
File diff suppressed because one or more lines are too long
@ -1 +1,3 @@
|
||||
This is the InspIRCd rules file.
Place any network or server rules here :)
|
||||
This is the InspIRCd rules file.
|
||||
|
||||
Place any network or server rules here :)
|
||||
|
347
docs/COPYING
347
docs/COPYING
File diff suppressed because one or more lines are too long
11
docs/README
11
docs/README
@ -1 +1,10 @@
|
||||
Because of the dynamic nature of InspIRCd, we do not have traditional documentation in our tarball.
The documentation for InspIRCd can be found on our wiki, at http://www.inspircd.org/wiki
Our bugtracker can be found at http://www.inspircd.org/bugtrack
Our forums can be found at http://www.inspircd.org/forum
Our development blog can be found at http://www.inspircd.com
For online support, please connect to irc.inspircd.org, and join #inspircd.
-- The InspIRCd Team
|
||||
Because of the dynamic nature of InspIRCd, we do not have traditional documentation in our tarball.
|
||||
|
||||
The documentation for InspIRCd can be found on our wiki, at http://www.inspircd.org/wiki
|
||||
Our bugtracker can be found at http://www.inspircd.org/bugtrack
|
||||
Our forums can be found at http://www.inspircd.org/forum
|
||||
Our development blog can be found at http://www.inspircd.com
|
||||
|
||||
For online support, please connect to irc.inspircd.org, and join #inspircd.
|
||||
|
||||
-- The InspIRCd Team
|
||||
|
File diff suppressed because one or more lines are too long
3078
docs/rfc/rfc1035.txt
3078
docs/rfc/rfc1035.txt
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3644
docs/rfc/rfc1459.txt
3644
docs/rfc/rfc1459.txt
File diff suppressed because one or more lines are too long
@ -1 +1,78 @@
|
||||
-- MySQL dump 9.11
--
-- Host: localhost Database: brain
-- ------------------------------------------------------
-- Server version 4.0.20
--
-- Table structure for table `ircd_log`
--
CREATE TABLE ircd_log (
id bigint(20) NOT NULL auto_increment,
category_id bigint(20) NOT NULL default '0',
nick bigint(20) default NULL,
host bigint(20) default NULL,
source bigint(20) default NULL,
dtime bigint(20) NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
--
-- Dumping data for table `ircd_log`
--
--
-- Table structure for table `ircd_log_categories`
--
CREATE TABLE ircd_log_categories (
category_id bigint(20) NOT NULL default '0',
category text NOT NULL,
PRIMARY KEY (category_id)
) TYPE=MyISAM;
--
-- Dumping data for table `ircd_log_categories`
--
INSERT INTO ircd_log_categories VALUES (1,'Oper');
INSERT INTO ircd_log_categories VALUES (2,'Kill');
INSERT INTO ircd_log_categories VALUES (3,'Server Link');
INSERT INTO ircd_log_categories VALUES (4,'G/Z/K/E Line');
INSERT INTO ircd_log_categories VALUES (5,'Connect');
INSERT INTO ircd_log_categories VALUES (6,'Disconnect');
INSERT INTO ircd_log_categories VALUES (7,'Flooding');
INSERT INTO ircd_log_categories VALUES (8,'Load Module');
--
-- Table structure for table `ircd_log_actors`
--
CREATE TABLE ircd_log_actors (
id bigint(20) NOT NULL auto_increment,
actor text,
PRIMARY KEY (id)
) TYPE=MyISAM;
--
-- Dumping data for table `ircd_log_actors`
--
--
-- Table structure for table `ircd_log_hosts`
--
CREATE TABLE ircd_log_hosts (
id bigint(20) NOT NULL auto_increment,
hostname text,
PRIMARY KEY (id)
) TYPE=MyISAM;
--
-- Dumping data for table `ircd_log_hosts`
--
|
||||
-- MySQL dump 9.11
|
||||
--
|
||||
-- Host: localhost Database: brain
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 4.0.20
|
||||
|
||||
--
|
||||
-- Table structure for table `ircd_log`
|
||||
--
|
||||
|
||||
CREATE TABLE ircd_log (
|
||||
id bigint(20) NOT NULL auto_increment,
|
||||
category_id bigint(20) NOT NULL default '0',
|
||||
nick bigint(20) default NULL,
|
||||
host bigint(20) default NULL,
|
||||
source bigint(20) default NULL,
|
||||
dtime bigint(20) NOT NULL default '0',
|
||||
PRIMARY KEY (id)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ircd_log`
|
||||
--
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `ircd_log_categories`
|
||||
--
|
||||
|
||||
CREATE TABLE ircd_log_categories (
|
||||
category_id bigint(20) NOT NULL default '0',
|
||||
category text NOT NULL,
|
||||
PRIMARY KEY (category_id)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ircd_log_categories`
|
||||
--
|
||||
|
||||
INSERT INTO ircd_log_categories VALUES (1,'Oper');
|
||||
INSERT INTO ircd_log_categories VALUES (2,'Kill');
|
||||
INSERT INTO ircd_log_categories VALUES (3,'Server Link');
|
||||
INSERT INTO ircd_log_categories VALUES (4,'G/Z/K/E Line');
|
||||
INSERT INTO ircd_log_categories VALUES (5,'Connect');
|
||||
INSERT INTO ircd_log_categories VALUES (6,'Disconnect');
|
||||
INSERT INTO ircd_log_categories VALUES (7,'Flooding');
|
||||
INSERT INTO ircd_log_categories VALUES (8,'Load Module');
|
||||
|
||||
--
|
||||
-- Table structure for table `ircd_log_actors`
|
||||
--
|
||||
|
||||
CREATE TABLE ircd_log_actors (
|
||||
id bigint(20) NOT NULL auto_increment,
|
||||
actor text,
|
||||
PRIMARY KEY (id)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ircd_log_actors`
|
||||
--
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `ircd_log_hosts`
|
||||
--
|
||||
|
||||
CREATE TABLE ircd_log_hosts (
|
||||
id bigint(20) NOT NULL auto_increment,
|
||||
hostname text,
|
||||
PRIMARY KEY (id)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ircd_log_hosts`
|
||||
--
|
||||
|
||||
|
||||
|
@ -1 +1,51 @@
|
||||
--
-- PostgreSQL database dump
--
CREATE TABLE ircd_log (
id serial NOT NULL,
category_id bigint,
nick bigint,
host bigint,
source bigint,
dtime bigint DEFAULT 0 NOT NULL
);
ALTER TABLE ONLY ircd_log
ADD CONSTRAINT ircd_log_pkey PRIMARY KEY (id);
CREATE TABLE ircd_log_actors (
id serial NOT NULL,
actor text
);
ALTER TABLE ONLY ircd_log_actors
ADD CONSTRAINT ircd_log_actors_pkey PRIMARY KEY (id);
CREATE TABLE ircd_log_categories (
category_id serial NOT NULL,
category text NOT NULL
);
INSERT INTO ircd_log_categories VALUES (1, 'Oper');
INSERT INTO ircd_log_categories VALUES (2, 'Kill');
INSERT INTO ircd_log_categories VALUES (3, 'Server Link');
INSERT INTO ircd_log_categories VALUES (4, 'G/Z/K/E Line');
INSERT INTO ircd_log_categories VALUES (5, 'Connect');
INSERT INTO ircd_log_categories VALUES (6, 'Disconnect');
INSERT INTO ircd_log_categories VALUES (7, 'Flooding');
INSERT INTO ircd_log_categories VALUES (8, 'Load Module');
ALTER TABLE ONLY ircd_log_categories
ADD CONSTRAINT ircd_log_categories_pkey PRIMARY KEY (category_id);
CREATE TABLE ircd_log_hosts (
id serial NOT NULL,
hostname text
);
ALTER TABLE ONLY ircd_log_hosts
ADD CONSTRAINT ircd_log_hosts_pkey PRIMARY KEY (id);
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
CREATE TABLE ircd_log (
|
||||
id serial NOT NULL,
|
||||
category_id bigint,
|
||||
nick bigint,
|
||||
host bigint,
|
||||
source bigint,
|
||||
dtime bigint DEFAULT 0 NOT NULL
|
||||
);
|
||||
ALTER TABLE ONLY ircd_log
|
||||
ADD CONSTRAINT ircd_log_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE ircd_log_actors (
|
||||
id serial NOT NULL,
|
||||
actor text
|
||||
);
|
||||
ALTER TABLE ONLY ircd_log_actors
|
||||
ADD CONSTRAINT ircd_log_actors_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE ircd_log_categories (
|
||||
category_id serial NOT NULL,
|
||||
category text NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO ircd_log_categories VALUES (1, 'Oper');
|
||||
INSERT INTO ircd_log_categories VALUES (2, 'Kill');
|
||||
INSERT INTO ircd_log_categories VALUES (3, 'Server Link');
|
||||
INSERT INTO ircd_log_categories VALUES (4, 'G/Z/K/E Line');
|
||||
INSERT INTO ircd_log_categories VALUES (5, 'Connect');
|
||||
INSERT INTO ircd_log_categories VALUES (6, 'Disconnect');
|
||||
INSERT INTO ircd_log_categories VALUES (7, 'Flooding');
|
||||
INSERT INTO ircd_log_categories VALUES (8, 'Load Module');
|
||||
|
||||
ALTER TABLE ONLY ircd_log_categories
|
||||
ADD CONSTRAINT ircd_log_categories_pkey PRIMARY KEY (category_id);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE ircd_log_hosts (
|
||||
id serial NOT NULL,
|
||||
hostname text
|
||||
);
|
||||
ALTER TABLE ONLY ircd_log_hosts
|
||||
ADD CONSTRAINT ircd_log_hosts_pkey PRIMARY KEY (id);
|
||||
|
@ -1 +1,34 @@
|
||||
CREATE TABLE ircd_log (
id integer primary key,
category_id integer,
nick integer,
host integer,
source integer,
dtime integer);
CREATE TABLE ircd_log_categories (
category_id integer primary key,
category text NOT NULL
);
INSERT INTO "ircd_log_categories" VALUES(1, 'Oper');
INSERT INTO "ircd_log_categories" VALUES(2, 'Kill');
INSERT INTO "ircd_log_categories" VALUES(3, 'Server Link');
INSERT INTO "ircd_log_categories" VALUES(4, 'G/Z/K/E Line');
INSERT INTO "ircd_log_categories" VALUES(5, 'Connect');
INSERT INTO "ircd_log_categories" VALUES(6, 'Disconnect');
INSERT INTO "ircd_log_categories" VALUES(7, 'Flooding');
INSERT INTO "ircd_log_categories" VALUES(8, 'Load Module');
CREATE TABLE ircd_log_actors (
id integer primary key,
actor text
);
CREATE TABLE ircd_log_hosts (
id integer primary key,
hostname text
);
|
||||
CREATE TABLE ircd_log (
|
||||
id integer primary key,
|
||||
category_id integer,
|
||||
nick integer,
|
||||
host integer,
|
||||
source integer,
|
||||
dtime integer);
|
||||
|
||||
|
||||
CREATE TABLE ircd_log_categories (
|
||||
category_id integer primary key,
|
||||
category text NOT NULL
|
||||
);
|
||||
INSERT INTO "ircd_log_categories" VALUES(1, 'Oper');
|
||||
INSERT INTO "ircd_log_categories" VALUES(2, 'Kill');
|
||||
INSERT INTO "ircd_log_categories" VALUES(3, 'Server Link');
|
||||
INSERT INTO "ircd_log_categories" VALUES(4, 'G/Z/K/E Line');
|
||||
INSERT INTO "ircd_log_categories" VALUES(5, 'Connect');
|
||||
INSERT INTO "ircd_log_categories" VALUES(6, 'Disconnect');
|
||||
INSERT INTO "ircd_log_categories" VALUES(7, 'Flooding');
|
||||
INSERT INTO "ircd_log_categories" VALUES(8, 'Load Module');
|
||||
|
||||
|
||||
CREATE TABLE ircd_log_actors (
|
||||
id integer primary key,
|
||||
actor text
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE ircd_log_hosts (
|
||||
id integer primary key,
|
||||
hostname text
|
||||
);
|
||||
|
||||
|
@ -1 +1,24 @@
|
||||
-- MySQL dump 9.11
--
-- Host: localhost Database: brain
-- ------------------------------------------------------
-- Server version 4.0.20
--
-- Table structure for table `ircd_opers`
--
CREATE TABLE ircd_opers (
id bigint(20) NOT NULL auto_increment,
username text,
password text,
hostname text,
type text,
PRIMARY KEY (id)
) TYPE=MyISAM;
--
-- Dumping data for table `ircd_opers`
--
|
||||
-- MySQL dump 9.11
|
||||
--
|
||||
-- Host: localhost Database: brain
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 4.0.20
|
||||
|
||||
--
|
||||
-- Table structure for table `ircd_opers`
|
||||
--
|
||||
|
||||
CREATE TABLE ircd_opers (
|
||||
id bigint(20) NOT NULL auto_increment,
|
||||
username text,
|
||||
password text,
|
||||
hostname text,
|
||||
type text,
|
||||
PRIMARY KEY (id)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ircd_opers`
|
||||
--
|
||||
|
||||
|
||||
|
@ -1 +1,14 @@
|
||||
--
-- PostgreSQL database dump
--
CREATE TABLE ircd_opers (
id serial NOT NULL,
username text,
"password" text,
hostname text,
"type" text
);
ALTER TABLE ONLY ircd_opers
ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id);
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
CREATE TABLE ircd_opers (
|
||||
id serial NOT NULL,
|
||||
username text,
|
||||
"password" text,
|
||||
hostname text,
|
||||
"type" text
|
||||
);
|
||||
ALTER TABLE ONLY ircd_opers
|
||||
ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id);
|
||||
|
||||
|
@ -1 +1,7 @@
|
||||
CREATE TABLE ircd_opers (
id integer primary key,
username text,
password text,
hostname text,
type text);
|
||||
CREATE TABLE ircd_opers (
|
||||
id integer primary key,
|
||||
username text,
|
||||
password text,
|
||||
hostname text,
|
||||
type text);
|
||||
|
||||
|
@ -1 +1,12 @@
|
||||
<html>
<head>
<title>
InspIRCd m_httpd.so Module
</title>
</head>
<body>
<h1>Nothing to see here folks, Move along...</h1>
<h4>This is a placeholder page provided by the InspIRCd m_httpd.so module. Please replace this page with better content.</h4>
<small>Powered by <a href="http://www.inspircd.org">InspIRCd</a></small>
</body>
</html>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
InspIRCd m_httpd.so Module
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Nothing to see here folks, Move along...</h1>
|
||||
<h4>This is a placeholder page provided by the InspIRCd m_httpd.so module. Please replace this page with better content.</h4>
|
||||
<small>Powered by <a href="http://www.inspircd.org">InspIRCd</a></small>
|
||||
</body>
|
||||
</html>
|
||||
|
229
include/base.h
229
include/base.h
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1,44 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_ADMIN_H__
#define __CMD_ADMIN_H__
#include "users.h"
#include "channels.h"
#include "ctables.h"
/** Handle /ADMIN. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_admin : public command_t
{
public:
/** Constructor for admin.
*/
cmd_admin (InspIRCd* Instance) : command_t(Instance,"ADMIN",0,0) { syntax = "[<servername>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_ADMIN_H__
|
||||
#define __CMD_ADMIN_H__
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
#include "ctables.h"
|
||||
|
||||
/** Handle /ADMIN. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_admin : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for admin.
|
||||
*/
|
||||
cmd_admin (InspIRCd* Instance) : command_t(Instance,"ADMIN",0,0) { syntax = "[<servername>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_AWAY_H__
#define __CMD_AWAY_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /AWAY. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_away : public command_t
{
public:
/** Constructor for away.
*/
cmd_away (InspIRCd* Instance) : command_t(Instance,"AWAY",0,0) { syntax = "[<message>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_AWAY_H__
|
||||
#define __CMD_AWAY_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /AWAY. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_away : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for away.
|
||||
*/
|
||||
cmd_away (InspIRCd* Instance) : command_t(Instance,"AWAY",0,0) { syntax = "[<message>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,44 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_ADMIN_H__
#define __CMD_ADMIN_H__
#include "users.h"
#include "channels.h"
#include "ctables.h"
/** Handle /ADMIN. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_clearcache : public command_t
{
public:
/** Constructor for clearcache.
*/
cmd_clearcache (InspIRCd* Instance) : command_t(Instance,"CLEARCACHE",'o',0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_ADMIN_H__
|
||||
#define __CMD_ADMIN_H__
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
#include "ctables.h"
|
||||
|
||||
/** Handle /ADMIN. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_clearcache : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for clearcache.
|
||||
*/
|
||||
cmd_clearcache (InspIRCd* Instance) : command_t(Instance,"CLEARCACHE",'o',0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_COMMANDS_H__
#define __CMD_COMMANDS_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /COMMANDS. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_commands : public command_t
{
public:
/** Constructor for commands.
*/
cmd_commands (InspIRCd* Instance) : command_t(Instance,"COMMANDS",0,0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_COMMANDS_H__
|
||||
#define __CMD_COMMANDS_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /COMMANDS. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_commands : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for commands.
|
||||
*/
|
||||
cmd_commands (InspIRCd* Instance) : command_t(Instance,"COMMANDS",0,0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_CONNECT_H__
#define __CMD_CONNECT_H__
#include "users.h"
#include "channels.h"
#include "ctables.h"
#include "modules.h"
/** Handle /CONNECT. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_connect : public command_t
{
public:
/** Constructor for connect.
*/
cmd_connect (InspIRCd* Instance) : command_t(Instance,"CONNECT",'o',1) { syntax = "<servername> [<remote-server>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_CONNECT_H__
|
||||
#define __CMD_CONNECT_H__
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
#include "ctables.h"
|
||||
#include "modules.h"
|
||||
|
||||
/** Handle /CONNECT. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_connect : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for connect.
|
||||
*/
|
||||
cmd_connect (InspIRCd* Instance) : command_t(Instance,"CONNECT",'o',1) { syntax = "<servername> [<remote-server>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_DIE_H__
#define __CMD_DIE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /DIE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_die : public command_t
{
public:
/** Constructor for die.
*/
cmd_die (InspIRCd* Instance) : command_t(Instance,"DIE",'o',1) { syntax = "<password>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_DIE_H__
|
||||
#define __CMD_DIE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /DIE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_die : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for die.
|
||||
*/
|
||||
cmd_die (InspIRCd* Instance) : command_t(Instance,"DIE",'o',1) { syntax = "<password>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_ELINE_H__
#define __CMD_ELINE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /ELINE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_eline : public command_t
{
public:
/** Constructor for eline.
*/
cmd_eline (InspIRCd* Instance) : command_t(Instance,"ELINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_ELINE_H__
|
||||
#define __CMD_ELINE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /ELINE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_eline : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for eline.
|
||||
*/
|
||||
cmd_eline (InspIRCd* Instance) : command_t(Instance,"ELINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_GLINE_H__
#define __CMD_GLINE_H__
// include the common header file
#include "users.h"
#include "channels.h"
/** Handle /GLINE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_gline : public command_t
{
public:
/** Constructor for gline.
*/
cmd_gline (InspIRCd* Instance) : command_t(Instance,"GLINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_GLINE_H__
|
||||
#define __CMD_GLINE_H__
|
||||
|
||||
// include the common header file
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /GLINE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_gline : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for gline.
|
||||
*/
|
||||
cmd_gline (InspIRCd* Instance) : command_t(Instance,"GLINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_INFO_H__
#define __CMD_INFO_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /INFO. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_info : public command_t
{
public:
/** Constructor for info.
*/
cmd_info (InspIRCd* Instance) : command_t(Instance,"INFO",0,0) { syntax = "[<servermask>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_INFO_H__
|
||||
#define __CMD_INFO_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /INFO. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_info : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for info.
|
||||
*/
|
||||
cmd_info (InspIRCd* Instance) : command_t(Instance,"INFO",0,0) { syntax = "[<servermask>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_INVITE_H__
#define __CMD_INVITE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /INVITE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_invite : public command_t
{
public:
/** Constructor for invite.
*/
cmd_invite (InspIRCd* Instance) : command_t(Instance,"INVITE",0,0) { syntax = "[<nick> <channel>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_INVITE_H__
|
||||
#define __CMD_INVITE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /INVITE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_invite : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for invite.
|
||||
*/
|
||||
cmd_invite (InspIRCd* Instance) : command_t(Instance,"INVITE",0,0) { syntax = "[<nick> <channel>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_ISON_H__
#define __CMD_ISON_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /ISON. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_ison : public command_t
{
public:
/** Constructor for ison.
*/
cmd_ison (InspIRCd* Instance) : command_t(Instance,"ISON",0,0) { syntax = "<nick> {nick}"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_ISON_H__
|
||||
#define __CMD_ISON_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /ISON. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_ison : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for ison.
|
||||
*/
|
||||
cmd_ison (InspIRCd* Instance) : command_t(Instance,"ISON",0,0) { syntax = "<nick> {nick}"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_JOIN_H__
#define __CMD_JOIN_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /JOIN. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_join : public command_t
{
public:
/** Constructor for join.
*/
cmd_join (InspIRCd* Instance) : command_t(Instance,"JOIN",0,1) { syntax = "<channel>{,<channel>} {<key>{,<key>}}"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_JOIN_H__
|
||||
#define __CMD_JOIN_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /JOIN. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_join : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for join.
|
||||
*/
|
||||
cmd_join (InspIRCd* Instance) : command_t(Instance,"JOIN",0,1) { syntax = "<channel>{,<channel>} {<key>{,<key>}}"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_KICK_H__
#define __CMD_KICK_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /KICK. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_kick : public command_t
{
public:
/** Constructor for kick.
*/
cmd_kick (InspIRCd* Instance) : command_t(Instance,"KICK",0,2) { syntax = "<channel> <nick>{,<nick>} [<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_KICK_H__
|
||||
#define __CMD_KICK_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /KICK. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_kick : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for kick.
|
||||
*/
|
||||
cmd_kick (InspIRCd* Instance) : command_t(Instance,"KICK",0,2) { syntax = "<channel> <nick>{,<nick>} [<reason>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_KILL_H__
#define __CMD_KILL_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /KILL. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_kill : public command_t
{
public:
/** Constructor for kill.
*/
cmd_kill (InspIRCd* Instance) : command_t(Instance,"KILL",'o',2) { syntax = "<nickname> <reason>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_KILL_H__
|
||||
#define __CMD_KILL_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /KILL. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_kill : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for kill.
|
||||
*/
|
||||
cmd_kill (InspIRCd* Instance) : command_t(Instance,"KILL",'o',2) { syntax = "<nickname> <reason>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_KLINE_H__
#define __CMD_KLINE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /KLINE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_kline : public command_t
{
public:
/** Constructor for kline.
*/
cmd_kline (InspIRCd* Instance) : command_t(Instance,"KLINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_KLINE_H__
|
||||
#define __CMD_KLINE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /KLINE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_kline : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for kline.
|
||||
*/
|
||||
cmd_kline (InspIRCd* Instance) : command_t(Instance,"KLINE",'o',1) { syntax = "<ident@host> [<duration> :<reason>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_LINKS_H__
#define __CMD_LINKS_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /LINKS. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_links : public command_t
{
public:
/** Constructor for links.
*/
cmd_links (InspIRCd* Instance) : command_t(Instance,"LINKS",0,0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_LINKS_H__
|
||||
#define __CMD_LINKS_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /LINKS. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_links : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for links.
|
||||
*/
|
||||
cmd_links (InspIRCd* Instance) : command_t(Instance,"LINKS",0,0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_LIST_H__
#define __CMD_LIST_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /LIST. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_list : public command_t
{
public:
/** Constructor for list.
*/
cmd_list (InspIRCd* Instance) : command_t(Instance,"LIST",0,0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_LIST_H__
|
||||
#define __CMD_LIST_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /LIST. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_list : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for list.
|
||||
*/
|
||||
cmd_list (InspIRCd* Instance) : command_t(Instance,"LIST",0,0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_LOADMODULE_H__
#define __CMD_LOADMODULE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /LOADMODULE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_loadmodule : public command_t
{
public:
/** Constructor for loadmodule.
*/
cmd_loadmodule (InspIRCd* Instance) : command_t(Instance,"LOADMODULE",'o',1) { syntax = "<modulename>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_LOADMODULE_H__
|
||||
#define __CMD_LOADMODULE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /LOADMODULE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_loadmodule : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for loadmodule.
|
||||
*/
|
||||
cmd_loadmodule (InspIRCd* Instance) : command_t(Instance,"LOADMODULE",'o',1) { syntax = "<modulename>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_LUSERS_H__
#define __CMD_LUSERS_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /LUSERS. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_lusers : public command_t
{
public:
/** Constructor for lusers.
*/
cmd_lusers (InspIRCd* Instance) : command_t(Instance,"LUSERS",0,0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_LUSERS_H__
|
||||
#define __CMD_LUSERS_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /LUSERS. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_lusers : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for lusers.
|
||||
*/
|
||||
cmd_lusers (InspIRCd* Instance) : command_t(Instance,"LUSERS",0,0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_MAP_H__
#define __CMD_MAP_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /MAP. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_map : public command_t
{
public:
/** Constructor for map.
*/
cmd_map (InspIRCd* Instance) : command_t(Instance,"MAP",0,0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_MAP_H__
|
||||
#define __CMD_MAP_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /MAP. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_map : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for map.
|
||||
*/
|
||||
cmd_map (InspIRCd* Instance) : command_t(Instance,"MAP",0,0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,44 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_ADMIN_H__
#define __CMD_ADMIN_H__
#include "users.h"
#include "channels.h"
#include "ctables.h"
/** Handle /MODE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_mode : public command_t
{
public:
/** Constructor for mode.
*/
cmd_mode (InspIRCd* Instance) : command_t(Instance,"MODE",0,1) { syntax = "<target> <modes> {<mode-parameters>}"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_ADMIN_H__
|
||||
#define __CMD_ADMIN_H__
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
#include "ctables.h"
|
||||
|
||||
/** Handle /MODE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_mode : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for mode.
|
||||
*/
|
||||
cmd_mode (InspIRCd* Instance) : command_t(Instance,"MODE",0,1) { syntax = "<target> <modes> {<mode-parameters>}"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_MODULES_H__
#define __CMD_MODULES_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /MODULES. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_modules : public command_t
{
public:
/** Constructor for modules.
*/
cmd_modules (InspIRCd* Instance) : command_t(Instance,"MODULES",0,0) { syntax = "[debug]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_MODULES_H__
|
||||
#define __CMD_MODULES_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /MODULES. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_modules : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for modules.
|
||||
*/
|
||||
cmd_modules (InspIRCd* Instance) : command_t(Instance,"MODULES",0,0) { syntax = "[debug]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_MOTD_H__
#define __CMD_MOTD_H__
// include the common header files
#include <string>
#include <vector>
#include "inspircd.h"
#include "users.h"
#include "channels.h"
/** Handle /MOTD. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_motd : public command_t
{
public:
/** Constructor for motd.
*/
cmd_motd (InspIRCd* Instance) : command_t(Instance,"MOTD",0,0) { syntax = "[<servername>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_MOTD_H__
|
||||
#define __CMD_MOTD_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "inspircd.h"
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /MOTD. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_motd : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for motd.
|
||||
*/
|
||||
cmd_motd (InspIRCd* Instance) : command_t(Instance,"MOTD",0,0) { syntax = "[<servername>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_NAMES_H__
#define __CMD_NAMES_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /NAMES. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_names : public command_t
{
public:
/** Constructor for names.
*/
cmd_names (InspIRCd* Instance) : command_t(Instance,"NAMES",0,0) { syntax = "{<channel>{,<channel>}}"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_NAMES_H__
|
||||
#define __CMD_NAMES_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /NAMES. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_names : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for names.
|
||||
*/
|
||||
cmd_names (InspIRCd* Instance) : command_t(Instance,"NAMES",0,0) { syntax = "{<channel>{,<channel>}}"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_NICK_H__
#define __CMD_NICK_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /NICK. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_nick : public command_t
{
public:
/** Constructor for nick.
*/
cmd_nick (InspIRCd* Instance) : command_t(Instance,"NICK",0,1,true) { syntax = "<newnick>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_NICK_H__
|
||||
#define __CMD_NICK_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /NICK. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_nick : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for nick.
|
||||
*/
|
||||
cmd_nick (InspIRCd* Instance) : command_t(Instance,"NICK",0,1,true) { syntax = "<newnick>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_NOTICE_H__
#define __CMD_NOTICE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /NOTICE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_notice : public command_t
{
public:
/** Constructor for notice.
*/
cmd_notice (InspIRCd* Instance) : command_t(Instance,"NOTICE",0,2) { syntax = "<target>{,<target>} <message>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_NOTICE_H__
|
||||
#define __CMD_NOTICE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /NOTICE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_notice : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for notice.
|
||||
*/
|
||||
cmd_notice (InspIRCd* Instance) : command_t(Instance,"NOTICE",0,2) { syntax = "<target>{,<target>} <message>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,47 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_OPER_H__
#define __CMD_OPER_H__
// include the common header files
#include "users.h"
#include "channels.h"
bool OneOfMatches(const char* host, const char* ip, const char* hostlist);
/** Handle /OPER. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_oper : public command_t
{
public:
/** Constructor for oper.
*/
cmd_oper (InspIRCd* Instance) : command_t(Instance,"OPER",0,2) { syntax = "<username> <password>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_OPER_H__
|
||||
#define __CMD_OPER_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
bool OneOfMatches(const char* host, const char* ip, const char* hostlist);
|
||||
|
||||
/** Handle /OPER. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_oper : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for oper.
|
||||
*/
|
||||
cmd_oper (InspIRCd* Instance) : command_t(Instance,"OPER",0,2) { syntax = "<username> <password>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_PART_H__
#define __CMD_PART_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /PART. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_part : public command_t
{
public:
/** Constructor for part.
*/
cmd_part (InspIRCd* Instance) : command_t(Instance,"PART",0,1) { syntax = "<channel>{,<channel>} [<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_PART_H__
|
||||
#define __CMD_PART_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /PART. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_part : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for part.
|
||||
*/
|
||||
cmd_part (InspIRCd* Instance) : command_t(Instance,"PART",0,1) { syntax = "<channel>{,<channel>} [<reason>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_PASS_H__
#define __CMD_PASS_H__
// include the common header files
#include <string>
#include <vector>
#include "inspircd.h"
#include "users.h"
#include "channels.h"
/** Handle /PASS. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_pass : public command_t
{
public:
/** Constructor for pass.
*/
cmd_pass (InspIRCd* Instance) : command_t(Instance,"PASS",0,1,true) { syntax = "<password>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_PASS_H__
|
||||
#define __CMD_PASS_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "inspircd.h"
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /PASS. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_pass : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for pass.
|
||||
*/
|
||||
cmd_pass (InspIRCd* Instance) : command_t(Instance,"PASS",0,1,true) { syntax = "<password>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_PING_H__
#define __CMD_PING_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /PING. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_ping : public command_t
{
public:
/** Constructor for ping.
*/
cmd_ping (InspIRCd* Instance) : command_t(Instance,"PING",0,1) { syntax = "<servername> [:<servername>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_PING_H__
|
||||
#define __CMD_PING_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /PING. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_ping : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for ping.
|
||||
*/
|
||||
cmd_ping (InspIRCd* Instance) : command_t(Instance,"PING",0,1) { syntax = "<servername> [:<servername>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,46 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_PONG_H__
#define __CMD_PONG_H__
// include the common header files
#include "inspircd.h"
#include "users.h"
#include "channels.h"
/** Handle /PONG. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_pong : public command_t
{
public:
/** Constructor for pong.
*/
cmd_pong (InspIRCd* Instance) : command_t(Instance,"PONG",0,1) { syntax = "<ping-text>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_PONG_H__
|
||||
#define __CMD_PONG_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "inspircd.h"
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /PONG. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_pong : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for pong.
|
||||
*/
|
||||
cmd_pong (InspIRCd* Instance) : command_t(Instance,"PONG",0,1) { syntax = "<ping-text>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_PRIVMSG_H__
#define __CMD_PRIVMSG_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /PRIVMSG. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_privmsg : public command_t
{
public:
/** Constructor for privmsg.
*/
cmd_privmsg (InspIRCd* Instance) : command_t(Instance,"PRIVMSG",0,2) { syntax = "<target>{,<target>} <message>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_PRIVMSG_H__
|
||||
#define __CMD_PRIVMSG_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /PRIVMSG. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_privmsg : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for privmsg.
|
||||
*/
|
||||
cmd_privmsg (InspIRCd* Instance) : command_t(Instance,"PRIVMSG",0,2) { syntax = "<target>{,<target>} <message>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_QLINE_H__
#define __CMD_QLINE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /QLINE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_qline : public command_t
{
public:
/** Constructor for qline.
*/
cmd_qline (InspIRCd* Instance) : command_t(Instance,"QLINE",'o',1) { syntax = "<nick> [<duration> :<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_QLINE_H__
|
||||
#define __CMD_QLINE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /QLINE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_qline : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for qline.
|
||||
*/
|
||||
cmd_qline (InspIRCd* Instance) : command_t(Instance,"QLINE",'o',1) { syntax = "<nick> [<duration> :<reason>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_QUIT_H__
#define __CMD_QUIT_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /QUIT. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_quit : public command_t
{
public:
/** Constructor for quit.
*/
cmd_quit (InspIRCd* Instance) : command_t(Instance,"QUIT",0,0,true) { syntax = "[<message>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_QUIT_H__
|
||||
#define __CMD_QUIT_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /QUIT. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_quit : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for quit.
|
||||
*/
|
||||
cmd_quit (InspIRCd* Instance) : command_t(Instance,"QUIT",0,0,true) { syntax = "[<message>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_REHASH_H__
#define __CMD_REHASH_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /REHASH. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_rehash : public command_t
{
public:
/** Constructor for rehash.
*/
cmd_rehash (InspIRCd* Instance) : command_t(Instance,"REHASH",'o',0) { syntax = "[<servermask>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_REHASH_H__
|
||||
#define __CMD_REHASH_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /REHASH. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_rehash : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for rehash.
|
||||
*/
|
||||
cmd_rehash (InspIRCd* Instance) : command_t(Instance,"REHASH",'o',0) { syntax = "[<servermask>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_RELOADMODULE_H__
#define __CMD_RELOADMODULE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /RELOADMODULE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_reloadmodule : public command_t
{
public:
/** Constructor for reloadmodule.
*/
cmd_reloadmodule (InspIRCd* Instance) : command_t(Instance,"RELOADMODULE",'o',1) { syntax = "<modulename>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_RELOADMODULE_H__
|
||||
#define __CMD_RELOADMODULE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /RELOADMODULE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_reloadmodule : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for reloadmodule.
|
||||
*/
|
||||
cmd_reloadmodule (InspIRCd* Instance) : command_t(Instance,"RELOADMODULE",'o',1) { syntax = "<modulename>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_RESTART_H__
#define __CMD_RESTART_H__
// include the common header files
#include <string>
#include <deque>
#include <vector>
#include "users.h"
#include "channels.h"
/** Handle /RESTART. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_restart : public command_t
{
public:
/** Constructor for restart.
*/
cmd_restart (InspIRCd* Instance) : command_t(Instance,"RESTART",'o',1) { syntax = "<password>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_RESTART_H__
|
||||
#define __CMD_RESTART_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include <string>
|
||||
#include <deque>
|
||||
#include <vector>
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /RESTART. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_restart : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for restart.
|
||||
*/
|
||||
cmd_restart (InspIRCd* Instance) : command_t(Instance,"RESTART",'o',1) { syntax = "<password>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_RULES_H__
#define __CMD_RULES_H__
// include the common header files
#include <string>
#include <vector>
#include "inspircd.h"
#include "users.h"
#include "channels.h"
/** Handle /RULES. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_rules : public command_t
{
public:
/** Constructor for rules.
*/
cmd_rules (InspIRCd* Instance) : command_t(Instance,"RULES",0,0) { syntax = "[<servername>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_RULES_H__
|
||||
#define __CMD_RULES_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "inspircd.h"
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /RULES. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_rules : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for rules.
|
||||
*/
|
||||
cmd_rules (InspIRCd* Instance) : command_t(Instance,"RULES",0,0) { syntax = "[<servername>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_SERVER_H__
#define __CMD_SERVER_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /SERVER. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_server : public command_t
{
public:
/** Constructor for server.
*/
cmd_server (InspIRCd* Instance) : command_t(Instance,"SERVER",0,0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_SERVER_H__
|
||||
#define __CMD_SERVER_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /SERVER. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_server : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for server.
|
||||
*/
|
||||
cmd_server (InspIRCd* Instance) : command_t(Instance,"SERVER",0,0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_SQUIT_H__
#define __CMD_SQUIT_H__
// include the common header files
#include <string>
#include <vector>
#include "inspircd.h"
#include "users.h"
#include "channels.h"
/** Handle /SQUIT. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_squit : public command_t
{
public:
/** Constructor for squit.
*/
cmd_squit (InspIRCd* Instance) : command_t(Instance,"SQUIT",'o',1) { syntax = "<servername> [<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_SQUIT_H__
|
||||
#define __CMD_SQUIT_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "inspircd.h"
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /SQUIT. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_squit : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for squit.
|
||||
*/
|
||||
cmd_squit (InspIRCd* Instance) : command_t(Instance,"SQUIT",'o',1) { syntax = "<servername> [<reason>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_STATS_H__
#define __CMD_STATS_H__
// include the common header files
#include "inspircd.h"
#include "users.h"
#include "channels.h"
DllExport void DoStats(InspIRCd* Instance, char statschar, userrec* user, string_list &results);
/** Handle /STATS. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_stats : public command_t
{
public:
/** Constructor for stats.
*/
cmd_stats (InspIRCd* Instance) : command_t(Instance,"STATS",0,1) { syntax = "<stats-symbol> [<servername>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_STATS_H__
|
||||
#define __CMD_STATS_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "inspircd.h"
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
DllExport void DoStats(InspIRCd* Instance, char statschar, userrec* user, string_list &results);
|
||||
|
||||
/** Handle /STATS. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_stats : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for stats.
|
||||
*/
|
||||
cmd_stats (InspIRCd* Instance) : command_t(Instance,"STATS",0,1) { syntax = "<stats-symbol> [<servername>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_SUMMON_H__
#define __CMD_SUMMON_H__
// include the common header files
#include <string>
#include <vector>
#include "inspircd.h"
#include "users.h"
#include "channels.h"
/** Handle /SUMMON stub. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_summon : public command_t
{
public:
/** Constructor for summon.
*/
cmd_summon (InspIRCd* Instance) : command_t(Instance,"SUMMON",0,0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_SUMMON_H__
|
||||
#define __CMD_SUMMON_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "inspircd.h"
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /SUMMON stub. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_summon : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for summon.
|
||||
*/
|
||||
cmd_summon (InspIRCd* Instance) : command_t(Instance,"SUMMON",0,0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_TIME_H__
#define __CMD_TIME_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /TIME. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_time : public command_t
{
public:
/** Constructor for time.
*/
cmd_time (InspIRCd* Instance) : command_t(Instance,"TIME",0,0) { syntax = "[<servername>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_TIME_H__
|
||||
#define __CMD_TIME_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /TIME. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_time : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for time.
|
||||
*/
|
||||
cmd_time (InspIRCd* Instance) : command_t(Instance,"TIME",0,0) { syntax = "[<servername>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_TOPIC_H__
#define __CMD_TOPIC_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /TOPIC. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_topic : public command_t
{
public:
/** Constructor for topic.
*/
cmd_topic (InspIRCd* Instance) : command_t(Instance,"TOPIC",0,1) { syntax = "<channel> [<topic>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_TOPIC_H__
|
||||
#define __CMD_TOPIC_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /TOPIC. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_topic : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for topic.
|
||||
*/
|
||||
cmd_topic (InspIRCd* Instance) : command_t(Instance,"TOPIC",0,1) { syntax = "<channel> [<topic>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_TRACE_H__
#define __CMD_TRACE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /TRACE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_trace : public command_t
{
public:
/** Constructor for trace.
*/
cmd_trace (InspIRCd* Instance) : command_t(Instance,"TRACE",'o',0) { syntax = "[<object>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_TRACE_H__
|
||||
#define __CMD_TRACE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /TRACE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_trace : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for trace.
|
||||
*/
|
||||
cmd_trace (InspIRCd* Instance) : command_t(Instance,"TRACE",'o',0) { syntax = "[<object>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_UNLOADMODULE_H__
#define __CMD_UNLOADMODULE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /UNLOADMODULE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_unloadmodule : public command_t
{
public:
/** Constructor for unloadmodule.
*/
cmd_unloadmodule (InspIRCd* Instance) : command_t(Instance,"UNLOADMODULE",'o',1) { syntax = "<modulename>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_UNLOADMODULE_H__
|
||||
#define __CMD_UNLOADMODULE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /UNLOADMODULE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_unloadmodule : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for unloadmodule.
|
||||
*/
|
||||
cmd_unloadmodule (InspIRCd* Instance) : command_t(Instance,"UNLOADMODULE",'o',1) { syntax = "<modulename>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_USER_H__
#define __CMD_USER_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /USER. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_user : public command_t
{
public:
/** Constructor for user.
*/
cmd_user (InspIRCd* Instance) : command_t(Instance,"USER",0,4,true) { syntax = "<username> <localhost> <remotehost> <GECOS>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_USER_H__
|
||||
#define __CMD_USER_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /USER. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_user : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for user.
|
||||
*/
|
||||
cmd_user (InspIRCd* Instance) : command_t(Instance,"USER",0,4,true) { syntax = "<username> <localhost> <remotehost> <GECOS>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_USERHOST_H__
#define __CMD_USERHOST_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /USERHOST. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_userhost : public command_t
{
public:
/** Constructor for userhost.
*/
cmd_userhost (InspIRCd* Instance) : command_t(Instance,"USERHOST",0,1) { syntax = "<nick>{,<nick>}"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_USERHOST_H__
|
||||
#define __CMD_USERHOST_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /USERHOST. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_userhost : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for userhost.
|
||||
*/
|
||||
cmd_userhost (InspIRCd* Instance) : command_t(Instance,"USERHOST",0,1) { syntax = "<nick>{,<nick>}"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_USERS_H__
#define __CMD_USERS_H__
// include the common header files
//
#include <string>
#include <vector>
#include "inspircd.h"
#include "users.h"
#include "channels.h"
/** Handle /USERS stub. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_users : public command_t
{
public:
/** Constructor for users.
*/
cmd_users (InspIRCd* Instance) : command_t(Instance,"USERS",0,0) { }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_USERS_H__
|
||||
#define __CMD_USERS_H__
|
||||
|
||||
// include the common header files
|
||||
//
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "inspircd.h"
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /USERS stub. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_users : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for users.
|
||||
*/
|
||||
cmd_users (InspIRCd* Instance) : command_t(Instance,"USERS",0,0) { }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_VERSION_H__
#define __CMD_VERSION_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /VERSION. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_version : public command_t
{
public:
/** Constructor for version.
*/
cmd_version (InspIRCd* Instance) : command_t(Instance,"VERSION",0,0) { syntax = "[<servername>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_VERSION_H__
|
||||
#define __CMD_VERSION_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /VERSION. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_version : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for version.
|
||||
*/
|
||||
cmd_version (InspIRCd* Instance) : command_t(Instance,"VERSION",0,0) { syntax = "[<servername>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_WALLOPS_H__
#define __CMD_WALLOPS_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /WALLOPS. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_wallops : public command_t
{
public:
/** Constructor for wallops.
*/
cmd_wallops (InspIRCd* Instance) : command_t(Instance,"WALLOPS",'o',1) { syntax = "<any-text>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_WALLOPS_H__
|
||||
#define __CMD_WALLOPS_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /WALLOPS. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_wallops : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for wallops.
|
||||
*/
|
||||
cmd_wallops (InspIRCd* Instance) : command_t(Instance,"WALLOPS",'o',1) { syntax = "<any-text>"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,59 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_WHO_H__
#define __CMD_WHO_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /WHO. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_who : public command_t
{
bool CanView(chanrec* chan, userrec* user);
bool opt_viewopersonly;
bool opt_showrealhost;
bool opt_unlimit;
bool opt_realname;
bool opt_mode;
bool opt_ident;
bool opt_metadata;
bool opt_port;
bool opt_away;
bool opt_local;
bool opt_far;
public:
/** Constructor for who.
*/
cmd_who (InspIRCd* Instance) : command_t(Instance,"WHO",0,1) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; }
void SendWhoLine(userrec* user, const std::string &initial, chanrec* ch, userrec* u, std::vector<std::string> &whoresults);
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
bool whomatch(userrec* user, const char* matchtext);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_WHO_H__
|
||||
#define __CMD_WHO_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /WHO. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_who : public command_t
|
||||
{
|
||||
bool CanView(chanrec* chan, userrec* user);
|
||||
bool opt_viewopersonly;
|
||||
bool opt_showrealhost;
|
||||
bool opt_unlimit;
|
||||
bool opt_realname;
|
||||
bool opt_mode;
|
||||
bool opt_ident;
|
||||
bool opt_metadata;
|
||||
bool opt_port;
|
||||
bool opt_away;
|
||||
bool opt_local;
|
||||
bool opt_far;
|
||||
public:
|
||||
/** Constructor for who.
|
||||
*/
|
||||
cmd_who (InspIRCd* Instance) : command_t(Instance,"WHO",0,1) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; }
|
||||
void SendWhoLine(userrec* user, const std::string &initial, chanrec* ch, userrec* u, std::vector<std::string> &whoresults);
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
bool whomatch(userrec* user, const char* matchtext);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,48 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_WHOIS_H__
#define __CMD_WHOIS_H__
// include the common header files
#include "users.h"
#include "channels.h"
const char* Spacify(char* n);
DllExport void do_whois(InspIRCd* Instance, userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick);
/** Handle /WHOIS. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_whois : public command_t
{
public:
/** Constructor for whois.
*/
cmd_whois (InspIRCd* Instance) : command_t(Instance,"WHOIS",0,1) { syntax = "<nick>{,<nick>}"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_WHOIS_H__
|
||||
#define __CMD_WHOIS_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
const char* Spacify(char* n);
|
||||
DllExport void do_whois(InspIRCd* Instance, userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick);
|
||||
|
||||
/** Handle /WHOIS. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_whois : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for whois.
|
||||
*/
|
||||
cmd_whois (InspIRCd* Instance) : command_t(Instance,"WHOIS",0,1) { syntax = "<nick>{,<nick>}"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,144 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_WHOWAS_H__
#define __CMD_WHOWAS_H__
// include the common header files
#include "users.h"
#include "channels.h"
/* list of available internal commands */
enum Internals
{
WHOWAS_ADD = 1,
WHOWAS_STATS = 2,
WHOWAS_PRUNE = 3,
WHOWAS_MAINTAIN = 4
};
/* Forward ref for timer */
class WhoWasMaintainTimer;
/* Forward ref for typedefs */
class WhoWasGroup;
/** InspTimer that is used to maintain the whowas list, called once an hour
*/
extern WhoWasMaintainTimer* timer;
/** A group of users related by nickname
*/
typedef std::deque<WhoWasGroup*> whowas_set;
/** Sets of users in the whowas system
*/
typedef std::map<irc::string,whowas_set*> whowas_users;
/** Sets of time and users in whowas list
*/
typedef std::deque<std::pair<time_t,irc::string> > whowas_users_fifo;
/** Handle /WHOWAS. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_whowas : public command_t
{
private:
/** Whowas container, contains a map of vectors of users tracked by WHOWAS
*/
whowas_users whowas;
/** Whowas container, contains a map of time_t to users tracked by WHOWAS
*/
whowas_users_fifo whowas_fifo;
/* String holding stats so it can be collected
*/
std::string stats;
public:
cmd_whowas(InspIRCd* Instance);
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> ¶meters);
void AddToWhoWas(userrec* user);
void GetStats(Extensible* ext);
void PruneWhoWas(time_t t);
void MaintainWhoWas(time_t t);
virtual ~cmd_whowas();
};
/** Used to hold WHOWAS information
*/
class WhoWasGroup : public classbase
{
public:
/** Real host
*/
char* host;
/** Displayed host
*/
char* dhost;
/** Ident
*/
char* ident;
/** Server name
*/
const char* server;
/** Fullname (GECOS)
*/
char* gecos;
/** Signon time
*/
time_t signon;
/** Initialize this WhoQasFroup with a user
*/
WhoWasGroup(userrec* user);
/** Destructor
*/
~WhoWasGroup();
};
class WhoWasMaintainTimer : public InspTimer
{
private:
InspIRCd* ServerInstance;
public:
WhoWasMaintainTimer(InspIRCd* Instance, long interval)
: InspTimer(interval, Instance->Time(), true), ServerInstance(Instance)
{
}
virtual void Tick(time_t TIME);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_WHOWAS_H__
|
||||
#define __CMD_WHOWAS_H__
|
||||
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/* list of available internal commands */
|
||||
enum Internals
|
||||
{
|
||||
WHOWAS_ADD = 1,
|
||||
WHOWAS_STATS = 2,
|
||||
WHOWAS_PRUNE = 3,
|
||||
WHOWAS_MAINTAIN = 4
|
||||
};
|
||||
|
||||
/* Forward ref for timer */
|
||||
class WhoWasMaintainTimer;
|
||||
|
||||
/* Forward ref for typedefs */
|
||||
class WhoWasGroup;
|
||||
|
||||
/** InspTimer that is used to maintain the whowas list, called once an hour
|
||||
*/
|
||||
extern WhoWasMaintainTimer* timer;
|
||||
|
||||
/** A group of users related by nickname
|
||||
*/
|
||||
typedef std::deque<WhoWasGroup*> whowas_set;
|
||||
|
||||
/** Sets of users in the whowas system
|
||||
*/
|
||||
typedef std::map<irc::string,whowas_set*> whowas_users;
|
||||
|
||||
/** Sets of time and users in whowas list
|
||||
*/
|
||||
typedef std::deque<std::pair<time_t,irc::string> > whowas_users_fifo;
|
||||
|
||||
/** Handle /WHOWAS. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_whowas : public command_t
|
||||
{
|
||||
private:
|
||||
/** Whowas container, contains a map of vectors of users tracked by WHOWAS
|
||||
*/
|
||||
whowas_users whowas;
|
||||
|
||||
/** Whowas container, contains a map of time_t to users tracked by WHOWAS
|
||||
*/
|
||||
whowas_users_fifo whowas_fifo;
|
||||
|
||||
/* String holding stats so it can be collected
|
||||
*/
|
||||
std::string stats;
|
||||
|
||||
public:
|
||||
cmd_whowas(InspIRCd* Instance);
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> ¶meters);
|
||||
void AddToWhoWas(userrec* user);
|
||||
void GetStats(Extensible* ext);
|
||||
void PruneWhoWas(time_t t);
|
||||
void MaintainWhoWas(time_t t);
|
||||
virtual ~cmd_whowas();
|
||||
};
|
||||
|
||||
/** Used to hold WHOWAS information
|
||||
*/
|
||||
class WhoWasGroup : public classbase
|
||||
{
|
||||
public:
|
||||
/** Real host
|
||||
*/
|
||||
char* host;
|
||||
/** Displayed host
|
||||
*/
|
||||
char* dhost;
|
||||
/** Ident
|
||||
*/
|
||||
char* ident;
|
||||
/** Server name
|
||||
*/
|
||||
const char* server;
|
||||
/** Fullname (GECOS)
|
||||
*/
|
||||
char* gecos;
|
||||
/** Signon time
|
||||
*/
|
||||
time_t signon;
|
||||
|
||||
/** Initialize this WhoQasFroup with a user
|
||||
*/
|
||||
WhoWasGroup(userrec* user);
|
||||
/** Destructor
|
||||
*/
|
||||
~WhoWasGroup();
|
||||
};
|
||||
|
||||
class WhoWasMaintainTimer : public InspTimer
|
||||
{
|
||||
private:
|
||||
InspIRCd* ServerInstance;
|
||||
public:
|
||||
WhoWasMaintainTimer(InspIRCd* Instance, long interval)
|
||||
: InspTimer(interval, Instance->Time(), true), ServerInstance(Instance)
|
||||
{
|
||||
}
|
||||
virtual void Tick(time_t TIME);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CMD_ZLINE_H__
#define __CMD_ZLINE_H__
// include the common header files
#include "users.h"
#include "channels.h"
/** Handle /ZLINE. These command handlers can be reloaded by the core,
* and handle basic RFC1459 commands. Commands within modules work
* the same way, however, they can be fully unloaded, where these
* may not.
*/
class cmd_zline : public command_t
{
public:
/** Constructor for zline.
*/
cmd_zline (InspIRCd* Instance) : command_t(Instance,"ZLINE",'o',1) { syntax = "<ipmask> [<duration> :<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
* @param user The user issuing the command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
||||
* E-mail:
|
||||
* <brain@chatspike.net>
|
||||
* <Craig@chatspike.net>
|
||||
*
|
||||
* Written by Craig Edwards, Craig McLure, and others.
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CMD_ZLINE_H__
|
||||
#define __CMD_ZLINE_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
/** Handle /ZLINE. These command handlers can be reloaded by the core,
|
||||
* and handle basic RFC1459 commands. Commands within modules work
|
||||
* the same way, however, they can be fully unloaded, where these
|
||||
* may not.
|
||||
*/
|
||||
class cmd_zline : public command_t
|
||||
{
|
||||
public:
|
||||
/** Constructor for zline.
|
||||
*/
|
||||
cmd_zline (InspIRCd* Instance) : command_t(Instance,"ZLINE",'o',1) { syntax = "<ipmask> [<duration> :<reason>]"; }
|
||||
/** Handle command.
|
||||
* @param parameters The parameters to the comamnd
|
||||
* @param pcnt The number of parameters passed to teh command
|
||||
* @param user The user issuing the command
|
||||
* @return A value from CmdResult to indicate command success or failure.
|
||||
*/
|
||||
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1,79 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CONNECTION_H__
#define __CONNECTION_H__
#include <time.h>
#include "inspircd_config.h"
#include "base.h"
#include "socketengine.h"
/** connection is the base class of userrec, and holds basic user properties.
* This can be extended for holding other user-like objects in the future.
*/
class CoreExport connection : public EventHandler
{
public:
/** Hostname of connection.
* This should be valid as per RFC1035.
*/
char host[65];
/** Stats counter for bytes inbound
*/
int bytes_in;
/** Stats counter for bytes outbound
*/
int bytes_out;
/** Stats counter for commands inbound
*/
int cmds_in;
/** Stats counter for commands outbound
*/
int cmds_out;
/** True if user has authenticated, false if otherwise
*/
bool haspassed;
/** Used by userrec to indicate the registration status of the connection
* It is a bitfield of the REG_NICK, REG_USER and REG_ALL bits to indicate
* the connection state.
*/
char registered;
/** Time the connection was last pinged
*/
time_t lastping;
/** Time the connection was created, set in the constructor. This
* may be different from the time the user's classbase object was
* created.
*/
time_t signon;
/** Time that the connection last sent a message, used to calculate idle time
*/
time_t idle_lastmsg;
/** Used by PING checking code
*/
time_t nping;
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CONNECTION_H__
|
||||
#define __CONNECTION_H__
|
||||
|
||||
#include <time.h>
|
||||
#include "inspircd_config.h"
|
||||
#include "base.h"
|
||||
#include "socketengine.h"
|
||||
|
||||
/** connection is the base class of userrec, and holds basic user properties.
|
||||
* This can be extended for holding other user-like objects in the future.
|
||||
*/
|
||||
class CoreExport connection : public EventHandler
|
||||
{
|
||||
public:
|
||||
/** Hostname of connection.
|
||||
* This should be valid as per RFC1035.
|
||||
*/
|
||||
char host[65];
|
||||
|
||||
/** Stats counter for bytes inbound
|
||||
*/
|
||||
int bytes_in;
|
||||
|
||||
/** Stats counter for bytes outbound
|
||||
*/
|
||||
int bytes_out;
|
||||
|
||||
/** Stats counter for commands inbound
|
||||
*/
|
||||
int cmds_in;
|
||||
|
||||
/** Stats counter for commands outbound
|
||||
*/
|
||||
int cmds_out;
|
||||
|
||||
/** True if user has authenticated, false if otherwise
|
||||
*/
|
||||
bool haspassed;
|
||||
|
||||
/** Used by userrec to indicate the registration status of the connection
|
||||
* It is a bitfield of the REG_NICK, REG_USER and REG_ALL bits to indicate
|
||||
* the connection state.
|
||||
*/
|
||||
char registered;
|
||||
|
||||
/** Time the connection was last pinged
|
||||
*/
|
||||
time_t lastping;
|
||||
|
||||
/** Time the connection was created, set in the constructor. This
|
||||
* may be different from the time the user's classbase object was
|
||||
* created.
|
||||
*/
|
||||
time_t signon;
|
||||
|
||||
/** Time that the connection last sent a message, used to calculate idle time
|
||||
*/
|
||||
time_t idle_lastmsg;
|
||||
|
||||
/** Used by PING checking code
|
||||
*/
|
||||
time_t nping;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1,162 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __CULLLIST_H__
#define __CULLLIST_H__
// include the common header files
#include <string>
#include <deque>
#include <vector>
#include "users.h"
#include "channels.h"
class InspIRCd;
/** The CullItem class holds a user and their quitmessage,
* and is used internally by the CullList class to compile
* a list of users which are to be culled when a long
* operation (such as a netsplit) has completed.
*/
class CoreExport CullItem : public classbase
{
private:
/** Holds a pointer to the user,
* must be valid and can be a local or remote user.
*/
userrec* user;
/** Holds the quit reason to use for this user.
*/
std::string reason;
/** Holds the quit reason opers see, if different from users
*/
std::string oper_reason;
/** Silent items dont generate an snotice.
*/
bool silent;
public:
/** Constrcutor.
* Initializes the CullItem with a user pointer
* and their quit reason
* @param u The user to add
* @param r The quit reason of the added user
* @param ro The quit reason to show to opers only
*/
CullItem(userrec* u, std::string &r, const char* ro = "");
/** Constrcutor.
* Initializes the CullItem with a user pointer
* and their quit reason
* @param u The user to add
* @param r The quit reason of the added user
* @param ro The quit reason to show to opers only
*/
CullItem(userrec* u, const char* r, const char* ro = "");
/** Make the quit silent a module is dealing with
* displaying this users quit, so we shouldn't
* send anything out.
*/
void MakeSilent();
/** Returns true if the quit for this user has been set
* to silent.
*/
bool IsSilent();
/** Destructor
*/
~CullItem();
/** Returns a pointer to the user
*/
userrec* GetUser();
/** Returns the user's quit reason
*/
std::string& GetReason();
/** Returns oper reason
*/
std::string& GetOperReason();
};
/** The CullList class can be used by modules, and is used
* by the core, to compile large lists of users in preperation
* to quitting them all at once. This is faster than quitting
* them within the loop, as the loops become tighter with
* little or no comparisons within them. The CullList class
* operates by allowing the programmer to push users onto
* the list, each with a seperate quit reason, and then, once
* the list is complete, call a method to flush the list,
* quitting all the users upon it. A CullList may hold local
* or remote users, but it may only hold each user once. If
* you attempt to add the same user twice, then the second
* attempt will be ignored.
*/
class CoreExport CullList : public classbase
{
private:
/** Creator of this CullList
*/
InspIRCd* ServerInstance;
/** Holds a list of users already added for quick lookup
*/
std::map<userrec*, userrec*> exempt;
/** Holds a list of users being quit.
* See the information for CullItem for
* more information.
*/
std::vector<CullItem> list;
public:
/** Constructor.
* Clears the CullList::list and CullList::exempt
* items.
* @param Instance Creator of this CullList object
*/
CullList(InspIRCd* Instance);
/** Adds a user to the cull list for later
* removal via QUIT.
* @param user The user to add
* @param reason The quit reason of the user being added
* @param o_reason The quit reason to show only to opers
*/
void AddItem(userrec* user, std::string &reason, const char* o_reason = "");
/** Adds a user to the cull list for later
* removal via QUIT.
* @param user The user to add
* @param reason The quit reason of the user being added
* @param o_reason The quit reason to show only to opers
*/
void AddItem(userrec* user, const char* reason, const char* o_reason = "");
/* Turn an item into a silent item (don't send out QUIT for this user)
*/
void MakeSilent(userrec* user);
/** Applies the cull list, quitting all the users
* on the list with their quit reasons all at once.
* This is a very fast operation compared to
* iterating the user list and comparing each one,
* especially if there are multiple comparisons
* to be done, or recursion.
* @returns The number of users removed from IRC.
*/
int Apply();
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __CULLLIST_H__
|
||||
#define __CULLLIST_H__
|
||||
|
||||
// include the common header files
|
||||
|
||||
#include <string>
|
||||
#include <deque>
|
||||
#include <vector>
|
||||
#include "users.h"
|
||||
#include "channels.h"
|
||||
|
||||
class InspIRCd;
|
||||
|
||||
/** The CullItem class holds a user and their quitmessage,
|
||||
* and is used internally by the CullList class to compile
|
||||
* a list of users which are to be culled when a long
|
||||
* operation (such as a netsplit) has completed.
|
||||
*/
|
||||
class CoreExport CullItem : public classbase
|
||||
{
|
||||
private:
|
||||
/** Holds a pointer to the user,
|
||||
* must be valid and can be a local or remote user.
|
||||
*/
|
||||
userrec* user;
|
||||
/** Holds the quit reason to use for this user.
|
||||
*/
|
||||
std::string reason;
|
||||
/** Holds the quit reason opers see, if different from users
|
||||
*/
|
||||
std::string oper_reason;
|
||||
/** Silent items dont generate an snotice.
|
||||
*/
|
||||
bool silent;
|
||||
public:
|
||||
/** Constrcutor.
|
||||
* Initializes the CullItem with a user pointer
|
||||
* and their quit reason
|
||||
* @param u The user to add
|
||||
* @param r The quit reason of the added user
|
||||
* @param ro The quit reason to show to opers only
|
||||
*/
|
||||
CullItem(userrec* u, std::string &r, const char* ro = "");
|
||||
/** Constrcutor.
|
||||
* Initializes the CullItem with a user pointer
|
||||
* and their quit reason
|
||||
* @param u The user to add
|
||||
* @param r The quit reason of the added user
|
||||
* @param ro The quit reason to show to opers only
|
||||
*/
|
||||
CullItem(userrec* u, const char* r, const char* ro = "");
|
||||
|
||||
/** Make the quit silent a module is dealing with
|
||||
* displaying this users quit, so we shouldn't
|
||||
* send anything out.
|
||||
*/
|
||||
void MakeSilent();
|
||||
|
||||
/** Returns true if the quit for this user has been set
|
||||
* to silent.
|
||||
*/
|
||||
bool IsSilent();
|
||||
|
||||
/** Destructor
|
||||
*/
|
||||
~CullItem();
|
||||
|
||||
/** Returns a pointer to the user
|
||||
*/
|
||||
userrec* GetUser();
|
||||
/** Returns the user's quit reason
|
||||
*/
|
||||
std::string& GetReason();
|
||||
/** Returns oper reason
|
||||
*/
|
||||
std::string& GetOperReason();
|
||||
};
|
||||
|
||||
/** The CullList class can be used by modules, and is used
|
||||
* by the core, to compile large lists of users in preperation
|
||||
* to quitting them all at once. This is faster than quitting
|
||||
* them within the loop, as the loops become tighter with
|
||||
* little or no comparisons within them. The CullList class
|
||||
* operates by allowing the programmer to push users onto
|
||||
* the list, each with a seperate quit reason, and then, once
|
||||
* the list is complete, call a method to flush the list,
|
||||
* quitting all the users upon it. A CullList may hold local
|
||||
* or remote users, but it may only hold each user once. If
|
||||
* you attempt to add the same user twice, then the second
|
||||
* attempt will be ignored.
|
||||
*/
|
||||
class CoreExport CullList : public classbase
|
||||
{
|
||||
private:
|
||||
/** Creator of this CullList
|
||||
*/
|
||||
InspIRCd* ServerInstance;
|
||||
|
||||
/** Holds a list of users already added for quick lookup
|
||||
*/
|
||||
std::map<userrec*, userrec*> exempt;
|
||||
|
||||
/** Holds a list of users being quit.
|
||||
* See the information for CullItem for
|
||||
* more information.
|
||||
*/
|
||||
std::vector<CullItem> list;
|
||||
|
||||
public:
|
||||
/** Constructor.
|
||||
* Clears the CullList::list and CullList::exempt
|
||||
* items.
|
||||
* @param Instance Creator of this CullList object
|
||||
*/
|
||||
CullList(InspIRCd* Instance);
|
||||
|
||||
/** Adds a user to the cull list for later
|
||||
* removal via QUIT.
|
||||
* @param user The user to add
|
||||
* @param reason The quit reason of the user being added
|
||||
* @param o_reason The quit reason to show only to opers
|
||||
*/
|
||||
void AddItem(userrec* user, std::string &reason, const char* o_reason = "");
|
||||
|
||||
/** Adds a user to the cull list for later
|
||||
* removal via QUIT.
|
||||
* @param user The user to add
|
||||
* @param reason The quit reason of the user being added
|
||||
* @param o_reason The quit reason to show only to opers
|
||||
*/
|
||||
void AddItem(userrec* user, const char* reason, const char* o_reason = "");
|
||||
|
||||
/* Turn an item into a silent item (don't send out QUIT for this user)
|
||||
*/
|
||||
void MakeSilent(userrec* user);
|
||||
|
||||
/** Applies the cull list, quitting all the users
|
||||
* on the list with their quit reasons all at once.
|
||||
* This is a very fast operation compared to
|
||||
* iterating the user list and comparing each one,
|
||||
* especially if there are multiple comparisons
|
||||
* to be done, or recursion.
|
||||
* @returns The number of users removed from IRC.
|
||||
*/
|
||||
int Apply();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
521
include/dns.h
521
include/dns.h
File diff suppressed because one or more lines are too long
@ -1 +1,127 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __DLL_H
#define __DLL_H
/** This typedef represents the init_module function within each module.
* The init_module function is the only exported extern "C" declaration
* in any module file.
*/
typedef void * (initfunc) (void);
#include "inspircd_config.h"
class InspIRCd;
/** The DLLManager class is able to load a module file by filename,
* and locate its init_module symbol.
*/
class CoreExport DLLManager
{
public:
/** This constructor loads the module using dlopen()
* @param ServerInstance The creator class of this object
* @param fname The filename to load. This should be within
* the modules dir.
*/
DLLManager(InspIRCd* ServerInstance, const char *fname);
virtual ~DLLManager();
/** Get a symbol using dynamic linking.
* @param v A function pointer, pointing at an init_module function
* @param sym_name The symbol name to find, usually "init_module"
* @return true if the symbol can be found, also the symbol will be put into v.
*/
bool GetSymbol(void **v, const char *sym_name);
/** Get the last error from dlopen() or dlsym().
* @return The last error string, or NULL if no error has occured.
*/
char* LastError()
{
return err;
}
/** The module handle.
* This is OS dependent, on POSIX platforms it is a pointer to a function
* pointer (yes, really!) and on windows it is a library handle.
*/
void *h;
protected:
/** The last error string, or NULL
*/
char *err;
};
/** This class is a specialized form of DLLManager designed to load InspIRCd modules.
* It's job is to call the init_module function and receive a factory pointer.
*/
class CoreExport DLLFactoryBase : public DLLManager
{
public:
/** Default constructor.
* This constructor loads a module file by calling its DLLManager subclass constructor,
* then finds the symbol using DLLManager::GetSymbol(), and calls the symbol,
* obtaining a valid pointer to the init_module function
*/
DLLFactoryBase(InspIRCd* Instance, const char *fname, const char *func_name = 0);
/** Default destructor.
*/
virtual ~DLLFactoryBase();
/** A function pointer to the factory function.
*/
void * (*factory_func)(void);
};
/** This is the highest-level class of the DLLFactory system used to load InspIRCd modules.
* Its job is to finally call the init_module function and obtain a pointer to a ModuleFactory.
* This template is a container for ModuleFactory itself, so that it may 'plug' into ModuleFactory
* and provide module loading capabilities transparently.
*/
template <class T> class CoreExport DLLFactory : public DLLFactoryBase
{
public:
/** Default constructor.
* This constructor passes its paramerers down through DLLFactoryBase and then DLLManager
* to load the module, then calls the factory function to retrieve a pointer to a ModuleFactory
* class. It is then down to the core to call the ModuleFactory::CreateModule() method and
* receive a Module* which it can insert into its module lists.
*/
DLLFactory(InspIRCd* Instance, const char *fname, const char *func_name=0) : DLLFactoryBase(Instance, fname, func_name)
{
if (factory_func)
factory = reinterpret_cast<T*>(factory_func());
else
factory = reinterpret_cast<T*>(-1);
}
/** The destructor deletes the ModuleFactory pointer.
*/
~DLLFactory()
{
if (factory)
delete factory;
}
/** The ModuleFactory pointer.
*/
T *factory;
};
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __DLL_H
|
||||
#define __DLL_H
|
||||
|
||||
/** This typedef represents the init_module function within each module.
|
||||
* The init_module function is the only exported extern "C" declaration
|
||||
* in any module file.
|
||||
*/
|
||||
typedef void * (initfunc) (void);
|
||||
|
||||
#include "inspircd_config.h"
|
||||
|
||||
class InspIRCd;
|
||||
|
||||
/** The DLLManager class is able to load a module file by filename,
|
||||
* and locate its init_module symbol.
|
||||
*/
|
||||
class CoreExport DLLManager
|
||||
{
|
||||
public:
|
||||
/** This constructor loads the module using dlopen()
|
||||
* @param ServerInstance The creator class of this object
|
||||
* @param fname The filename to load. This should be within
|
||||
* the modules dir.
|
||||
*/
|
||||
DLLManager(InspIRCd* ServerInstance, const char *fname);
|
||||
virtual ~DLLManager();
|
||||
|
||||
/** Get a symbol using dynamic linking.
|
||||
* @param v A function pointer, pointing at an init_module function
|
||||
* @param sym_name The symbol name to find, usually "init_module"
|
||||
* @return true if the symbol can be found, also the symbol will be put into v.
|
||||
*/
|
||||
bool GetSymbol(void **v, const char *sym_name);
|
||||
|
||||
/** Get the last error from dlopen() or dlsym().
|
||||
* @return The last error string, or NULL if no error has occured.
|
||||
*/
|
||||
char* LastError()
|
||||
{
|
||||
return err;
|
||||
}
|
||||
|
||||
/** The module handle.
|
||||
* This is OS dependent, on POSIX platforms it is a pointer to a function
|
||||
* pointer (yes, really!) and on windows it is a library handle.
|
||||
*/
|
||||
void *h;
|
||||
|
||||
protected:
|
||||
|
||||
/** The last error string, or NULL
|
||||
*/
|
||||
char *err;
|
||||
};
|
||||
|
||||
/** This class is a specialized form of DLLManager designed to load InspIRCd modules.
|
||||
* It's job is to call the init_module function and receive a factory pointer.
|
||||
*/
|
||||
class CoreExport DLLFactoryBase : public DLLManager
|
||||
{
|
||||
public:
|
||||
/** Default constructor.
|
||||
* This constructor loads a module file by calling its DLLManager subclass constructor,
|
||||
* then finds the symbol using DLLManager::GetSymbol(), and calls the symbol,
|
||||
* obtaining a valid pointer to the init_module function
|
||||
*/
|
||||
DLLFactoryBase(InspIRCd* Instance, const char *fname, const char *func_name = 0);
|
||||
|
||||
/** Default destructor.
|
||||
*/
|
||||
virtual ~DLLFactoryBase();
|
||||
|
||||
/** A function pointer to the factory function.
|
||||
*/
|
||||
void * (*factory_func)(void);
|
||||
};
|
||||
|
||||
/** This is the highest-level class of the DLLFactory system used to load InspIRCd modules.
|
||||
* Its job is to finally call the init_module function and obtain a pointer to a ModuleFactory.
|
||||
* This template is a container for ModuleFactory itself, so that it may 'plug' into ModuleFactory
|
||||
* and provide module loading capabilities transparently.
|
||||
*/
|
||||
template <class T> class CoreExport DLLFactory : public DLLFactoryBase
|
||||
{
|
||||
public:
|
||||
/** Default constructor.
|
||||
* This constructor passes its paramerers down through DLLFactoryBase and then DLLManager
|
||||
* to load the module, then calls the factory function to retrieve a pointer to a ModuleFactory
|
||||
* class. It is then down to the core to call the ModuleFactory::CreateModule() method and
|
||||
* receive a Module* which it can insert into its module lists.
|
||||
*/
|
||||
DLLFactory(InspIRCd* Instance, const char *fname, const char *func_name=0) : DLLFactoryBase(Instance, fname, func_name)
|
||||
{
|
||||
if (factory_func)
|
||||
factory = reinterpret_cast<T*>(factory_func());
|
||||
else
|
||||
factory = reinterpret_cast<T*>(-1);
|
||||
}
|
||||
|
||||
/** The destructor deletes the ModuleFactory pointer.
|
||||
*/
|
||||
~DLLFactory()
|
||||
{
|
||||
if (factory)
|
||||
delete factory;
|
||||
}
|
||||
|
||||
/** The ModuleFactory pointer.
|
||||
*/
|
||||
T *factory;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1 +1,45 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __EXITCODE_H__
#define __EXITCODE_H__
/** Valid exit codes to be used with InspIRCd::Exit()
*/
enum ExitStatus
{
EXIT_STATUS_NOERROR = 0, /* No error */
EXIT_STATUS_DIE = 1, /* Operator issued DIE */
EXIT_STATUS_FAILED_EXEC = 2, /* execv() failed */
EXIT_STATUS_INTERNAL = 3, /* Internal error */
EXIT_STATUS_CONFIG = 4, /* Config error */
EXIT_STATUS_LOG = 5, /* Log file error */
EXIT_STATUS_FORK = 6, /* fork() failed */
EXIT_STATUS_ARGV = 7, /* Invalid program arguments */
EXIT_STATUS_BIND = 8, /* Port binding failed on all ports */
EXIT_STATUS_PID = 9, /* Couldn't write PID file */
EXIT_STATUS_SOCKETENGINE = 10, /* Couldn't start socket engine */
EXIT_STATUS_ROOT = 11, /* Refusing to start as root */
EXIT_STATUS_DIETAG = 12, /* Found a die tag in the config file */
EXIT_STATUS_MODULE = 13, /* Couldn't load a required module */
EXIT_STATUS_CREATEPROCESS = 14, /* CreateProcess failed (windows) */
EXIT_STATUS_SIGTERM = 15 /* Note: dont move this value. It corresponds with the value of #define SIGTERM. */
};
/** Array that maps exit codes (ExitStatus types) to
* human-readable strings to be shown on shutdown.
*/
extern const char * ExitCodes[];
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __EXITCODE_H__
|
||||
#define __EXITCODE_H__
|
||||
|
||||
/** Valid exit codes to be used with InspIRCd::Exit()
|
||||
*/
|
||||
enum ExitStatus
|
||||
{
|
||||
EXIT_STATUS_NOERROR = 0, /* No error */
|
||||
EXIT_STATUS_DIE = 1, /* Operator issued DIE */
|
||||
EXIT_STATUS_FAILED_EXEC = 2, /* execv() failed */
|
||||
EXIT_STATUS_INTERNAL = 3, /* Internal error */
|
||||
EXIT_STATUS_CONFIG = 4, /* Config error */
|
||||
EXIT_STATUS_LOG = 5, /* Log file error */
|
||||
EXIT_STATUS_FORK = 6, /* fork() failed */
|
||||
EXIT_STATUS_ARGV = 7, /* Invalid program arguments */
|
||||
EXIT_STATUS_BIND = 8, /* Port binding failed on all ports */
|
||||
EXIT_STATUS_PID = 9, /* Couldn't write PID file */
|
||||
EXIT_STATUS_SOCKETENGINE = 10, /* Couldn't start socket engine */
|
||||
EXIT_STATUS_ROOT = 11, /* Refusing to start as root */
|
||||
EXIT_STATUS_DIETAG = 12, /* Found a die tag in the config file */
|
||||
EXIT_STATUS_MODULE = 13, /* Couldn't load a required module */
|
||||
EXIT_STATUS_CREATEPROCESS = 14, /* CreateProcess failed (windows) */
|
||||
EXIT_STATUS_SIGTERM = 15 /* Note: dont move this value. It corresponds with the value of #define SIGTERM. */
|
||||
};
|
||||
|
||||
/** Array that maps exit codes (ExitStatus types) to
|
||||
* human-readable strings to be shown on shutdown.
|
||||
*/
|
||||
extern const char * ExitCodes[];
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1 +1,39 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __WORLD_H
#define __WORLD_H
#include <string>
#include <deque>
#include <map>
#include <vector>
/** A cached text file stored with its contents as lines
*/
typedef std::deque<std::string> file_cache;
/** A configuration key and value pair
*/
typedef std::pair< std::string, std::string > KeyVal;
/** A list of related configuration keys and values
*/
typedef std::vector< KeyVal > KeyValList;
/** An entire config file, built up of KeyValLists
*/
typedef std::multimap< std::string, KeyValList > ConfigDataHash;
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __WORLD_H
|
||||
#define __WORLD_H
|
||||
|
||||
#include <string>
|
||||
#include <deque>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
/** A cached text file stored with its contents as lines
|
||||
*/
|
||||
typedef std::deque<std::string> file_cache;
|
||||
|
||||
/** A configuration key and value pair
|
||||
*/
|
||||
typedef std::pair< std::string, std::string > KeyVal;
|
||||
|
||||
/** A list of related configuration keys and values
|
||||
*/
|
||||
typedef std::vector< KeyVal > KeyValList;
|
||||
|
||||
/** An entire config file, built up of KeyValLists
|
||||
*/
|
||||
typedef std::multimap< std::string, KeyValList > ConfigDataHash;
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1 +1,33 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef INSPIRCD_HASHMAP_H
#define INSPIRCD_HASHMAP_H
#include "inspircd_config.h"
/** Where hash_map is varies from compiler to compiler
* as it is not standard.
*/
#ifndef WIN32
#include <ext/hash_map>
/** Oddball linux namespace for hash_map */
#define nspace __gnu_cxx
#else
#include <hash_map>
#define nspace stdext
/** Oddball windows namespace for hash_map */
using stdext::hash_map;
#endif
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef INSPIRCD_HASHMAP_H
|
||||
#define INSPIRCD_HASHMAP_H
|
||||
|
||||
#include "inspircd_config.h"
|
||||
|
||||
/** Where hash_map is varies from compiler to compiler
|
||||
* as it is not standard.
|
||||
*/
|
||||
#ifndef WIN32
|
||||
#include <ext/hash_map>
|
||||
/** Oddball linux namespace for hash_map */
|
||||
#define nspace __gnu_cxx
|
||||
#else
|
||||
#include <hash_map>
|
||||
#define nspace stdext
|
||||
/** Oddball windows namespace for hash_map */
|
||||
using stdext::hash_map;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because one or more lines are too long
1280
include/inspircd.h
1280
include/inspircd.h
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1,56 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#ifndef __IN_INSPSTRING_H
#define __IN_INSPSTRING_H
#include "inspircd_config.h"
#include <string.h>
#include <cstddef>
#ifndef HAS_STRLCPY
/** strlcpy() implementation for systems that don't have it (linux) */
CoreExport size_t strlcpy(char *dst, const char *src, size_t siz);
/** strlcat() implementation for systems that don't have it (linux) */
CoreExport size_t strlcat(char *dst, const char *src, size_t siz);
#endif
/** charlcat() will append one character to a string using the same
* safety scemantics as strlcat().
* @param x The string to operate on
* @param y the character to append to the end of x
* @param z The maximum allowed length for z including null terminator
*/
CoreExport int charlcat(char* x,char y,int z);
/** charremove() will remove all instances of a character from a string
* @param mp The string to operate on
* @param remove The character to remove
*/
CoreExport bool charremove(char* mp, char remove);
/** strnewdup() is an implemenetation of strdup() which calls operator new
* rather than malloc to allocate the new string, therefore allowing it to
* be hooked into the C++ memory manager, and freed with operator delete.
* This is required for windows, where we override operators new and delete
* to allow for global allocation between modules and the core.
*/
inline char * strnewdup(const char * s1)
{
size_t len = strlen(s1) + 1;
char * p = new char[len];
memcpy(p, s1, len);
return p;
}
#endif
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef __IN_INSPSTRING_H
|
||||
#define __IN_INSPSTRING_H
|
||||
|
||||
#include "inspircd_config.h"
|
||||
#include <string.h>
|
||||
#include <cstddef>
|
||||
|
||||
#ifndef HAS_STRLCPY
|
||||
/** strlcpy() implementation for systems that don't have it (linux) */
|
||||
CoreExport size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||
/** strlcat() implementation for systems that don't have it (linux) */
|
||||
CoreExport size_t strlcat(char *dst, const char *src, size_t siz);
|
||||
#endif
|
||||
|
||||
/** charlcat() will append one character to a string using the same
|
||||
* safety scemantics as strlcat().
|
||||
* @param x The string to operate on
|
||||
* @param y the character to append to the end of x
|
||||
* @param z The maximum allowed length for z including null terminator
|
||||
*/
|
||||
CoreExport int charlcat(char* x,char y,int z);
|
||||
/** charremove() will remove all instances of a character from a string
|
||||
* @param mp The string to operate on
|
||||
* @param remove The character to remove
|
||||
*/
|
||||
CoreExport bool charremove(char* mp, char remove);
|
||||
|
||||
/** strnewdup() is an implemenetation of strdup() which calls operator new
|
||||
* rather than malloc to allocate the new string, therefore allowing it to
|
||||
* be hooked into the C++ memory manager, and freed with operator delete.
|
||||
* This is required for windows, where we override operators new and delete
|
||||
* to allow for global allocation between modules and the core.
|
||||
*/
|
||||
inline char * strnewdup(const char * s1)
|
||||
{
|
||||
size_t len = strlen(s1) + 1;
|
||||
char * p = new char[len];
|
||||
memcpy(p, s1, len);
|
||||
return p;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
520
include/mode.h
520
include/mode.h
File diff suppressed because one or more lines are too long
@ -1 +1,35 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#include "mode.h"
#include "channels.h"
class InspIRCd;
/** Channel mode +b
*/
class ModeChannelBan : public ModeHandler
{
private:
BanItem b;
public:
ModeChannelBan(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
std::string& AddBan(userrec *user,std::string& dest,chanrec *chan,int status);
std::string& DelBan(userrec *user,std::string& dest,chanrec *chan,int status);
void DisplayList(userrec* user, chanrec* channel);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
void RemoveMode(userrec* user);
void RemoveMode(chanrec* channel);
};
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "mode.h"
|
||||
#include "channels.h"
|
||||
|
||||
class InspIRCd;
|
||||
|
||||
/** Channel mode +b
|
||||
*/
|
||||
class ModeChannelBan : public ModeHandler
|
||||
{
|
||||
private:
|
||||
BanItem b;
|
||||
public:
|
||||
ModeChannelBan(InspIRCd* Instance);
|
||||
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
|
||||
std::string& AddBan(userrec *user,std::string& dest,chanrec *chan,int status);
|
||||
std::string& DelBan(userrec *user,std::string& dest,chanrec *chan,int status);
|
||||
void DisplayList(userrec* user, chanrec* channel);
|
||||
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
|
||||
void RemoveMode(userrec* user);
|
||||
void RemoveMode(chanrec* channel);
|
||||
};
|
||||
|
||||
|
@ -1 +1,34 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#include "mode.h"
#include "channels.h"
class InspIRCd;
/** Channel mode +h
*/
class ModeChannelHalfOp : public ModeHandler
{
private:
public:
ModeChannelHalfOp(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
std::string AddHalfOp(userrec *user,const char *dest,chanrec *chan,int status);
std::string DelHalfOp(userrec *user,const char *dest,chanrec *chan,int status);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
unsigned int GetPrefixRank();
void RemoveMode(chanrec* channel);
void RemoveMode(userrec* user);
};
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "mode.h"
|
||||
#include "channels.h"
|
||||
|
||||
class InspIRCd;
|
||||
|
||||
/** Channel mode +h
|
||||
*/
|
||||
class ModeChannelHalfOp : public ModeHandler
|
||||
{
|
||||
private:
|
||||
public:
|
||||
ModeChannelHalfOp(InspIRCd* Instance);
|
||||
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
|
||||
std::string AddHalfOp(userrec *user,const char *dest,chanrec *chan,int status);
|
||||
std::string DelHalfOp(userrec *user,const char *dest,chanrec *chan,int status);
|
||||
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
|
||||
unsigned int GetPrefixRank();
|
||||
void RemoveMode(chanrec* channel);
|
||||
void RemoveMode(userrec* user);
|
||||
};
|
||||
|
||||
|
@ -1 +1,25 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +i
*/
class ModeChannelInviteOnly : public ModeHandler
{
public:
ModeChannelInviteOnly(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
};
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "mode.h"
|
||||
|
||||
class InspIRCd;
|
||||
|
||||
/** Channel mode +i
|
||||
*/
|
||||
class ModeChannelInviteOnly : public ModeHandler
|
||||
{
|
||||
public:
|
||||
ModeChannelInviteOnly(InspIRCd* Instance);
|
||||
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
|
||||
};
|
||||
|
@ -1 +1,29 @@
|
||||
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +k
*/
class ModeChannelKey : public ModeHandler
{
public:
ModeChannelKey(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel);
void RemoveMode(chanrec* channel);
void RemoveMode(userrec* user);
};
|
||||
/* +------------------------------------+
|
||||
* | Inspire Internet Relay Chat Daemon |
|
||||
* +------------------------------------+
|
||||
*
|
||||
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
||||
* See: http://www.inspircd.org/wiki/index.php/Credits
|
||||
*
|
||||
* This program is free but copyrighted software; see
|
||||
* the file COPYING for details.
|
||||
*
|
||||
* ---------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "mode.h"
|
||||
|
||||
class InspIRCd;
|
||||
|
||||
/** Channel mode +k
|
||||
*/
|
||||
class ModeChannelKey : public ModeHandler
|
||||
{
|
||||
public:
|
||||
ModeChannelKey(InspIRCd* Instance);
|
||||
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
|
||||
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
|
||||
bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel);
|
||||
void RemoveMode(chanrec* channel);
|
||||
void RemoveMode(userrec* user);
|
||||
};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user