mIRC Home    About    Download    Register    News    Help

Print Thread
New Rank Support #11005 14/02/03 10:00 AM
Joined: Feb 2003
Posts: 29
S
StriderGU Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
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).

Re: New Rank Support #11006 14/02/03 03:12 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
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.
Re: New Rank Support #11007 14/02/03 07:50 PM
Joined: Feb 2003
Posts: 29
S
StriderGU Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
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.
Re: New Rank Support #11008 14/02/03 09:22 PM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
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.

Re: New Rank Support #11009 14/02/03 10:05 PM
Joined: Dec 2002
Posts: 395
M
MonoSex Offline
Fjord artisan
Offline
Fjord artisan
M
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...

Re: New Rank Support #11010 15/02/03 12:08 AM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
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.
Re: New Rank Support #11011 15/02/03 12:16 AM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
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.

Re: New Rank Support #11012 15/02/03 04:43 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
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.

Re: New Rank Support #11013 15/02/03 05:54 AM
Joined: Feb 2003
Posts: 29
S
StriderGU Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
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.

Re: New Rank Support #11014 15/02/03 07:27 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
Not a bad idea at all smile


Those who fail history are doomed to repeat it
Re: New Rank Support #11015 15/02/03 08:00 AM
Joined: Feb 2003
Posts: 29
S
StriderGU Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
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 frown, Like both admin and op != admin status.

Last edited by StriderGU; 15/02/03 09:01 AM.
Re: New Rank Support #11016 15/02/03 10:11 AM
Joined: Dec 2002
Posts: 1,237
T
The_Game Offline
Hoopy frood
Offline
Hoopy frood
T
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.

Re: New Rank Support #11017 15/02/03 11:11 AM
Joined: Feb 2003
Posts: 29
S
StriderGU Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
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.
Re: New Rank Support #11018 15/02/03 12:42 PM
Joined: Dec 2002
Posts: 1,237
T
The_Game Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
my bad

Re: New Rank Support #11019 15/02/03 03:45 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
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
Re: New Rank Support #11020 15/02/03 06:46 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
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.

Re: New Rank Support #11021 15/02/03 07:59 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
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
Re: New Rank Support #11022 07/02/05 09:43 PM
Joined: Jan 2005
Posts: 20
C
C45P3R Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: Jan 2005
Posts: 20
What on earth is HVop? I have never come accross it.