diff --git a/Changes b/Changes index e9aeda3bc..537af16fc 100644 --- a/Changes +++ b/Changes @@ -1202,7 +1202,9 @@ - Updated windows compile instructions again. - Updated release notes - Added 'real' aliases, this are aliases that map to real commands, so you can for example - map the command '/BLAH 5' to 'NICK idiot5'. More info in docs on alias block. + map the command '/GLINEBOT ' to 'GLINE 2d Bots are not allowed on this server, blabla'. + See the documentation on the alias block for more information. doc/example.conf contains an + example as well (search for "glinebot"). - Modulized: badwords system (src/badwords.c is now gone) and StripColors/StripControlCodes to m_message, multiple netsynch routines to m_server, send_list to m_list, a certain mode routine to m_svsmode, all /MSG IRC.. webtv stuff to src/modules/webtv.c which is compiled diff --git a/doc/example.conf b/doc/example.conf index d38e278e7..60109a96f 100644 --- a/doc/example.conf +++ b/doc/example.conf @@ -507,6 +507,18 @@ alias "identify" { type command; }; +/* This is an example of a real command alias */ +/* This maps /GLINEBOT to /GLINE 2d etc... */ +alias "glinebot" { + format ".+" { + command "gline"; + type real; + parameters "%1 2d Bots are not allowed on this server, please read the faq at http://www.example.com/faq/123"; + }; + type command; +}; + + /* * NEW: tld {} diff --git a/src/s_svs.c b/src/s_svs.c index e3f5382d5..15e1d6db3 100644 --- a/src/s_svs.c +++ b/src/s_svs.c @@ -376,7 +376,7 @@ int ret; /* Now check to make sure we have something to send */ if (strlen(output) == 0) { - sendto_one(sptr, err_str(ERR_NOTEXTTOSEND), me.name, parv[0]); + sendto_one(sptr, err_str(ERR_NEEDMOREPARAMS), me.name, sptr->name, cmd); return -1; }