|
|
Joined: Mar 2007
Posts: 218
Fjord artisan
|
OP
Fjord artisan
Joined: Mar 2007
Posts: 218 |
Ok, i thought i'd try to write a little script to list users with modes or no modes, but using the .pnick to get any possible modes if the server supports them ie;
//listusers # q or ~ (for owners) [~nick] [ident@address]
//listusers # & (for protected user) [&nick] [ident@address]
//listusers # o or @ (for opped users) [@nick] [ident@address]
//listusers # v or + (for voiced users) [@nick] [ident@address]
etc etc, I tried this and i couldn't get anywhere if anyone could help, it'd be much appreciated.
|
|
|
|
Joined: Jan 2004
Posts: 509
Fjord artisan
|
Fjord artisan
Joined: Jan 2004
Posts: 509 |
You mean stuff like:
/opnick {
var %n = 1, %o
while (%n <= $nick(#,0,o)) {
%o = %o $nick(#,%n,o)
inc %n
}
/say %o
}
|
|
|
|
Joined: Jan 2004
Posts: 509
Fjord artisan
|
Fjord artisan
Joined: Jan 2004
Posts: 509 |
So here's the version where you /listusers #Channel o/@
/listusers {
if ($2 == o) || ($2 == @) {
var %n = 1, %o
while (%n <= $nick($1,0,o)) {
%o = %o $nick($1,%n,o)
inc %n
}
/say %o
}
}
Etc.
|
|
|
|
Joined: Jul 2006
Posts: 4,150
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,150 |
alias listusers var %n $nick($1,0,$2) | while (%n) var %o %o $nick($1,%n,$2) ,%n %n - 1 | return %o $listusers(#channel,[o|@,h|%,v|+])
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Mar 2007
Posts: 218
Fjord artisan
|
OP
Fjord artisan
Joined: Mar 2007
Posts: 218 |
Both good, but i was looking to list them below each other with an address an dmode next to them ie; //listusers # @ [@nick ident@address] [@nick1 ident1@address1] [@nick2 ident2@address2]
|
|
|
|
Joined: Jan 2004
Posts: 509
Fjord artisan
|
Fjord artisan
Joined: Jan 2004
Posts: 509 |
Then add an $address($nick,1) or whatever mask you want.
|
|
|
|
Joined: Mar 2007
Posts: 218
Fjord artisan
|
OP
Fjord artisan
Joined: Mar 2007
Posts: 218 |
I did that, that's why i asked here
|
|
|
|
|
|