umode +W
umode +W
Hello. I am trying to make a module that allows regular users to do umode +W, but withouth editing the source. So it can be umode2 +W if it is needed. But anyway, i want to know a few things about modules, like how to catch a whois. So if somebody whois's somebody else, and the person who is being whois'd has the umode2 +W enabled, it needs to say: blabla did a /whois on you.
So what do i need, what headers do i need to include and how do i intercept a whois?
So what do i need, what headers do i need to include and how do i intercept a whois?
Someone submitted such a module a few days ago to us (it adds a umode +m that normal users can set and notifies them as soon as someone whois'es them). However, it had a little bug (it stopped working after /rehash), as soon as that one is fixed by the author he'll resubmit it and I'll approve it.
Just to save you from doing duplicate work ;).
@your questions...
how to catch a whois? -> command overrides
See http://modules.unrealircd.com/ for info on all this.
Also, if you are stuck or don't understand it... just take a look at modules other people wrote.
All together it's not ment to be 'easy for everyone' like mirc scripting or whatever, so be prepared to spend several hours on all this.
Self-education is a nice thing :P
Just to save you from doing duplicate work ;).
@your questions...
how to catch a whois? -> command overrides
See http://modules.unrealircd.com/ for info on all this.
Also, if you are stuck or don't understand it... just take a look at modules other people wrote.
All together it's not ment to be 'easy for everyone' like mirc scripting or whatever, so be prepared to spend several hours on all this.
Self-education is a nice thing :P
Which gets lost as soon as the user/client executes a MODE command (which a lot of clients do [to set themselves +i for example])...You don't need this to allow users to get +W. You can put +W on set::modes-on-connect and all users will get +W even if they are not opers.
Tricks like this (and putting illegal modes like 'S' in modes-on-oper) are NOT good, and you shouldn't be surprised if it might not work anymore at a later version.
Easily fixable, I believe. Syzop?
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
That's snomask +e that allows that.Josh wrote:If your network uses hidden hostmasks and you were to give any user +W, apon /whois they'll see the recipients' real host. So be careful on what you decide.
... From the bugs forum:syzop wrote:Tricks like this (and putting illegal modes like 'S' in modes-on-oper) are NOT good, and you shouldn't be surprised if it might not work anymore at a later version
codemaster wrote:Almost no error checking is done for any of the mode settings. You could add +N to modes-on-connect if you wanted to! If an admin, for whatever reason, has decided all opers should be +q, why should I tell them they can't?
Even though that would be a pretty bizarre reason...
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Loaded a clone of me, used services' raw and here's what displayed in the status window.aquanight wrote:That's snomask +e that allows that.Josh wrote:If your network uses hidden hostmasks and you were to give any user +W, apon /whois they'll see the recipients' real host. So be careful on what you decide.
I had no 'Server notice mask (+e)', only +ixW.<9:42:59PM> * Services.*.net sets sets mode: +W
·
<9:43:22PM> -Nexus.*.net- *** Josh (ie@alb-24-195-*-*.nycap.rr.com) did a /whois on you.
·
<9:44:41PM> -> Server: mode Josh2
·
Josh2 +ixW
Correct, you would probably have to put an IsOper or some other such check in the whois code to give the real IP or whatever. But that is modification of the source, which is NOT supported. So unless the Unreal team add it, you will be on your own
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]