|
Joined: Feb 2003
Posts: 29
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2003
Posts: 29 |
Some networks use founder and admin ranks that show up differently than ops in the nick list. But it would be nice to have more support of these (and one more rank too).
Founder '!' +g - Highest Rank, only fo the channel owner. Admin '*' +a - Higher rank than Op. HVop '^' +f (or something) - Help Voice, new rank between voice and halfop.
With support for all the operations (is) and conditions (on).
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
What exactly do you mean by 'support'? As long as those modes and prefixes are correctly specified in the PREFIX= and CHANMODES= tokens of raw 005 then they should be supported in the standard sense. If you mean things like on HVOP events etc. then I don't really think that's necessary until they've proven to be popular and worthwhile modes. Quite frankly HVOp sounds pretty damn pointless to me.
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Feb 2003
Posts: 29
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2003
Posts: 29 |
How to test if a user gets admin (*) and see if a nick have admin? How is $prefix used?
Last edited by StriderGU; 14/02/03 07:52 PM.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
If you mean things like on HVOP events etc. then I don't really think that's necessary until they've proven to be popular and worthwhile modes. Quite frankly HVOp sounds pretty damn pointless to me.
No more or less pointless than % or -, surely. This isn't the point though, the issue is for whether mIRC supports it or not.
|
|
|
|
Joined: Dec 2002
Posts: 395
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 395 |
I think you can use $nick(#channel,nick).pnick for that - would return nick with it's prefix on channel.
And i don't think it's possible for mIRC to support all prefixes/channel modes in all IRCds...
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
UOp is also pointless and is also not 'supported' by mIRC in the way of events. Halfop is somewhere near useful and is present in many IRCds.
StriderGU - Well for admin there is an actual (undocumented) on ADMIN event. For the others you can use rawmode to detect when one of those modes is set/unset and as MonoSex said, $nick(#channel,nickname).pnick to detect whether that mode is already present.
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
/me suggests a new "all inclusive" event
ON <level>:LEVEL:<char>:<#[,#]>:<commands> ON <level>:DELEVEL:<char>:<#[,#]>:<commands>
These would work for any mode listed in the Numeric 005 PREFIX= (since mIRC already fully supports PREFIX=). Would work something like this:
ON *:LEVEL:a:*:{ .echo $nick was just made an admin on $chan }
ON *:DELEVEL:a:*:{ . echo $nick just lost his admin status on $chan }
Would also support the current levels (meaning in time it can replace ON OP, ON VOICE, etc) Also it would support wildcards for the <char> and have a $char that would tell you which was changed so you can have a single event to handle them all.
Crazy? Yes, but it could be useful.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
Pointless to you but perhaps not other people. I like codemastrs suggestion. There is nothing wrong with universal acceptance of mode prefixes.
|
|
|
|
Joined: Feb 2003
Posts: 29
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2003
Posts: 29 |
Nice idea codemaster Yes I think its unnsessesary to have 6+ different on that handle what rank a user gets.
And all thanks for the help.
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
Not a bad idea at all
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Feb 2003
Posts: 29
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2003
Posts: 29 |
So now before this is added, to test if a user is an admin (in a event) you have to write like this: if ($nick($chan, $nick).pnick == * $+ $nick) { } Or is there an easier way? You say there is a "on *:ADMIN:* { }"? I cant get it to work. How to use the rawmode format to test if someone got admin? Edit: pnick does not work if you have many channel ranks at the same time , Like both admin and op != admin status.
Last edited by StriderGU; 15/02/03 09:01 AM.
|
|
|
|
Joined: Dec 2002
Posts: 1,237
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,237 |
Ok if i understand correctly you want something like access lists for a channel? For example you want something so when the channel owner (founder) joins or does something then you want only that user to be able to do so? I will give an example cause im not really sure this is what you meant..
To give someone a certain access such as Channel Founder, Or Channel Op, or whatnot you would have to add them to a certain access level by doing
/guser Founder <nickname> or
/guser Channel Op <nickname>
(guser looks up the nicks userhost automatically so you wont have to put it in)
Then to have something for example if the Founder joins this will op him
on Founder:JOIN:#channel:/mode $chan +o $nick
or
on Channel Op:JOIN:#channel:/mode $chan +o $nick
*NOTE: If you add this to your script this will only work unless you are in the room and opped! or if this script is embedded into a botscript or what not
This is only a cheap cheesy way of doing it and i will say again that im not sure if this is what you are looking for.so im hoping this helps in some way. If I am wrong about what you really wanted then I will apologize in advanced.
|
|
|
|
Joined: Feb 2003
Posts: 29
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2003
Posts: 29 |
No that was not what I wanted.
The network support +a (* admin status).
I wanted to know how to see that a +a is made on a user. So I can make a script thats responds to that.
Last edited by StriderGU; 15/02/03 11:12 AM.
|
|
|
|
Joined: Dec 2002
Posts: 1,237
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,237 |
|
|
|
|
Joined: Jan 2003
Posts: 2,523
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,523 |
Type /help on RAWMODE, this is one of the reasons this event exists. I'm not sure if you will be able to use $mode(N) for +a modes (although I *think* that $mode(N) supports mode letters, so maybe $mode(1).a would work), but even if this isn't possible, you can still parse $1- yourself.
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Also thinking about it, maybe there could be a $islevel() as well? $islevel(<nick>,<chan>,<char>|,<prefix>) meaning: $islevel(codemastr,#test,o) $islevel(codemastr,#test,@) both would have the same effect.
|
|
|
|
Joined: Jan 2003
Posts: 2,523
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,523 |
No need for that: $nick(<channel>,<nick>,<mode letter/symbol>) returns a number (position in nicklist) if the nick has that mode, otherwise $null. And yes, it doesn't only support "aohvr", it supports whatever modes are in $prefix (and $nickmode) Examples: $nick(#blah,foo,*), $nick(#blah,foo,z)
What I don't know is what happens when the mode letter happens to be "a" or "r", which conflicts with mirc's reserved letters for "all" and "regulars".
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
|
|
|
|
Joined: Jan 2005
Posts: 20
Ameglian cow
|
Ameglian cow
Joined: Jan 2005
Posts: 20 |
What on earth is HVop? I have never come accross it.
|
|
|
|
|