Page 1 of 1
Question for you Gotem
Posted: Sun Jul 30, 2017 11:40 pm
by rcschaff
Do you know if there is a way to change the message unreal sends when a user attempts to join a +Z room. WOuld like to notice them instructions on how to get SSL for their client.
Re: Question for you Gotem
Posted: Mon Jul 31, 2017 1:10 pm
by Gottem
The string about being unable to join because the channel is +z, is hardcoded into the core source. So no, you can't change that, but it might be possible to write a hook that simply sends an additional notice.
Of course, information like that is supposed to go in the MOTD. ;]
Re: Question for you Gotem
Posted: Tue Aug 01, 2017 7:55 am
by rcschaff
It is, but who reads the damn MOTD. I found that most clients ignore the servers message anyways and display their own. Kinda a PITA if you ask me. Perhaps I will hook the join and send a PM if they aren't SSL
Re: Question for you Gotem
Posted: Fri Aug 04, 2017 11:24 pm
by Gottem
Yeah I suppose that's true, I have my ZNC set to simply discard MOTDs too. :> Sending a PM (or notice) would work, just use
me.name for the source (resolves to the server's name) if one is required. =]
Any of these could do it:
Code: Select all
// Notice that most likely ends up in server consoles (unless clients show notices in the active tab)
sendnotice(sptr, "To use SSL: .....");
// Send a PRIVMSG from (e.g.) someleaf.myirc.net, always opens a new tab
sendto_one(sptr, ":%s PRIVMSG %s :To use SSL: .....", me.name, sptr->name);