Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: InspIRCd 1.2 fantasy commands  (Read 8184 times)

0 Members and 1 Guest are viewing this topic.

Casey

  • Anope User
  • Offline Offline
  • Posts: 53
InspIRCd 1.2 fantasy commands
« on: February 09, 2009, 07:32:56 AM »

InspIRCd 1.2 alias

fantasy commands


<alias text="SET" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :SET $chan $1-" requires="ChanServ" uline="yes">
<alias text="SOP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :SOP $chan $1-" requires="ChanServ" uline="yes">
<alias text="AOP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :AOP $chan $1-" requires="ChanServ" uline="yes">
<alias text="HOP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :HOP $chan $1-" requires="ChanServ" uline="yes">
<alias text="VOP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :VOP $chan $1-" requires="ChanServ" uline="yes">
<alias text="ACCESS" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :ACCESS $chan $1-" requires="ChanServ" uline="yes">
<alias text="LEVELS" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :LEVELS $chan $1-" requires="ChanServ" uline="yes">
<alias text="AKICK" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :AKICK $chan $1-" requires="ChanServ" uline="yes">
<alias text="BAN" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :BAN $chan $1-" requires="ChanServ" uline="yes">
<alias text="UNBAN" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :UNBAN $chan $1-" requires="ChanServ" uline="yes">
<alias text="CLEAR" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :CLEAR $chan $1-" requires="ChanServ" uline="yes">
<alias text="OWNER" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :OWNER $chan $1-" requires="ChanServ" uline="yes">
<alias text="DEOWNER" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :DEOWNER $chan $1-" requires="ChanServ" uline="yes">
<alias text="PROTECT" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :PROTECT $chan $1-" requires="ChanServ" uline="yes">
<alias text="DEPROTECT" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :DEPROTECT $chan $1-" requires="ChanServ" uline="yes">
<alias text="OP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :OP $chan $1-" requires="ChanServ" uline="yes">
<alias text="DEOP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :DEOP $chan $1-" requires="ChanServ" uline="yes">
<alias text="HALFOP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :HALFOP $chan $1-" requires="ChanServ" uline="yes">
<alias text="DEHALFOP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :DEHALFOP $chan $1-" requires="ChanServ" uline="yes">
<alias text="VOICE" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :VOICE $chan $1-" requires="ChanServ" uline="yes">
<alias text="DEVOICE" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :DEVOICE $chan $1-" requires="ChanServ" uline="yes">
<alias text="KICK" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :KICK $chan $1-" requires="ChanServ" uline="yes">
<alias text="TOPIC" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :TOPIC $chan $1-" requires="ChanServ" uline="yes">
<alias text="INFO" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :INFO $chan $1-" requires="ChanServ" uline="yes">
<alias text="APPENDTOPIC" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :APPENDTOPIC $chan $1-" requires="ChanServ" uline="yes">
<alias text="ENFORCE" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :ENFORCE $chan $1-" requires="ChanServ" uline="yes">
<alias text="HELP" usercommand="no" channelcommand="yes" replace="PRIVMSG ChanServ :HELP $1-" requires="ChanServ" uline="yes">
Logged

Athenon

  • Anope User
  • Offline Offline
  • Posts: 1
Re: InspIRCd 1.2 fantasy commands
« Reply #1 on: February 10, 2009, 02:16:14 AM »

Ok, I love this.  I want to say that first.

Secondly...this overrides the regular /topic and /kick (possibly others?) in the current build of 1.2.  As such, those commands are completely disabled...no errors, no messages, they just don't work.  That's a warning to those of you who want to try this.

HOWEVER, dz is on the job.  He is modifying m_alias to fix this issue so it shouldn't be a problem in the future...but it is at the moment.

EDIT: <PostBot> InspIRCd: dz * r11080 trunk/inspircd/src/modules/m_alias.cpp: Prevent fantasy aliases from blocking user commands (eg. !topic would prevent users from using /topic). Also as a result of this change, any aliases where the command does not actually exist and are either strictly fantasy commands or no formats match will result in a unknown command message. Fixes bug #714, spotted by CJ -- thanks.
« Last Edit: February 10, 2009, 02:32:17 AM by Athenon »
Logged
Pages: [1]   Go Up