Alias /report

If your UnrealIRCd is up and running but you have a question about it, then use this forum.
(NOT for installation or connecting issues! Use the other forum instead.)

Moderator: Supporters

Post Reply
Manuel
Posts: 3
Joined: Sat Sep 05, 2020 8:23 pm

Alias /report

Post by Manuel »

Hello, I have created the following alias in the alias configuration for the IRCd:

Code: Select all

alias report {
format "^ #" {
target Q;
type normal;
parameters "! report% 1-";
}
type command;
}

But now I want the command "! Report" to be executed in the channel via / report.
Windigo
Posts: 4
Joined: Wed Feb 10, 2021 2:21 am

Re: Alias /report

Post by Windigo »

Hi there!

IRC commands are sent using a forward-slash "/", where you send the string is down to your configuration.

!commands like that usually trigger bots, not servers. These types of commands are called "fantasy" commands, and the character "!" is a command char for a bot.

Long story short, you can't configure the server to use !commands, sorry!
Manuel
Posts: 3
Joined: Sat Sep 05, 2020 8:23 pm

Re: Alias /report

Post by Manuel »

Again to write with!

I want the command "/report" to post this command "!report" in a channel and not on a bot.

And that works too!
Windigo
Posts: 4
Joined: Wed Feb 10, 2021 2:21 am

Re: Alias /report

Post by Windigo »

oh!

Code: Select all

alias report {
	format "^#" {
	
		target "#YourChannel";
		type normal;
		parameters "!report %1-";
		
	}
	type command;
}
like that? (I think that is right...)
Manuel
Posts: 3
Joined: Sat Sep 05, 2020 8:23 pm

Re: Alias /report

Post by Manuel »

[19:45:01] [FEHLER] #opers ist kein gültiger raum - oder nickname !
Lord255
Posts: 95
Joined: Sat Feb 29, 2020 12:58 am
Location: offline

Re: Alias /report

Post by Lord255 »

eyo.
did you guys check the man page?:)
https://www.unrealircd.org/docs/Alias_block

so.. you want to report to a channel, not a bot, but then why you use type normal ?


anyway, you could use this:

Code: Select all

alias report {
   format "^#" {
      target "PRIVMSG #opers !report";
      type real;
      parameters "%1-";
   }
   type command;
}
although this only works if the channel does not have +n on it, but it does do the job what you want.
i dont think that you can do this with +n on the channel.
Post Reply