|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2006
Posts: 400 |
Hi everyone, I have this script, it works, it just has a little problem:
alias listusers {
var %i 1
var %users $nick(#,0)
var %bots ORiGiN XBC-BOT |||{-_-}||| HeLPBoT
while (%i <= %users) {
if ($istok(%bots,$nick(#,%i),32)) { inc %i }
echo -a $nick(#,%i)
inc %i
}
}
The problem is that it doesn't say ORiGiN or |||{-_-}|||, but it does say XBC-BOT and HeLPBoT, which I don't want, anyone know why?
-Kurdish_Assass1n
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
could it be that you have a match so it increases the %i then the script increases %i again? try using return in the match section and see what you get
|
|
|
|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2006
Posts: 400 |
Hey MikeChat, I tried using return, but, it only returns the nick before all of those bots (most of them are ops, so, they are always at the top of the list), Any other idea, or any other way to write this script? -------------- ORiGiN = +o XBC-BOT = +o (BotServ) |||{-_-}||| = +o - HeLPBoT = +v
Last edited by Kurdish_Assass1n; 21/10/06 07:13 PM.
-Kurdish_Assass1n
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
alias listusers {
var %i 1
var %users $nick(#,0)
var %bots ORiGiN XBC-BOT |||{-_-}||| HeLPBoT
while (%i <= %users) {
if (!$istok(%bots,$nick(#,%i),32)) { echo -a $nick(#,%i) }
inc %i
}
}
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2006
Posts: 400 |
Ok, another problem, I get the same idle time for most of the users when I use /idleusers
alias idleusers {
var %i 1
var %users $nick(#,0)
var %bots ORiGiN XBC-BOT |||{-_-}||| HeLPBoT
while (%i <= %users) {
if (!$istok(%bots,$nick(#,%i),32)) { echo -at 0 $nick(#,%i) 4has been idle in # for: 0 $duration($nick(#,%i).idle) }
inc %i
}
}
Here's an example of what I get: [7:35:42] Behemoth has been idle in #Slava for: 36mins 39secs [7:35:42] ChanBot has been idle in #Slava for: 54mins 49secs [7:35:42] GLORY has been idle in #Slava for: 54mins 49secs [7:35:42] Kurdish_Assass1n has been idle in #Slava for: 8mins 8secs [7:35:42] MrGiMmE has been idle in #Slava for: 54mins 49secs [7:35:42] Roj has been idle in #Slava for: 54mins 49secs [7:35:42] SlAva has been idle in #Slava for: 54mins 49secs [7:35:42] chario has been idle in #Slava for: 3mins 41secs [7:35:42] HuNTa has been idle in #Slava for: 12mins 15secs
Last edited by Kurdish_Assass1n; 22/10/06 12:37 AM.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
all the nicks that have the same time "54mins 49secs" were in channel before you joined, and have been idle while you have been there right? was that about 54mins 49secs?
raw 317 has the sign on time and time idle on the server, but in larger channels this may cause problems doing /whois nick nick to get the 317 for everyone
the $nick(#,nick).idle is pulling the info from the IAL on Your client and is limited to the amount of time You have been on so you sign in and have someone who has idled for three weeks is (after freshing the IAL for the channel) are going to return the amount of time you have been in the channel.
Last edited by MikeChat; 22/10/06 12:52 AM.
|
|
|
|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2006
Posts: 400 |
ahh, understood, so, there's no other way to get the idle time from all of the users in a channel? without actually /whois'ing everyone in the chan?
-Kurdish_Assass1n
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Always stay in the channel and it would be fine. ![wink wink](/images/graemlins/mirc/wink.gif) You might consider also setting it to look at your own connect time and anyone with an idle time equal to your time online would be marked as "Over X:XX:XX" so you knew the person has been idle since you arrived.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
|