mIRC Home    About    Download    Register    News    Help

Topic Options
#190053 - 15/11/07 01:20 PM updating
nomer2007 Offline
Babel fish

Registered: 18/10/07
Posts: 92
How could you update the Invite && Exception list of the channel?

Top
#190058 - 15/11/07 02:29 PM Re: updating [Re: nomer2007]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009

Please elaborate.

Top
#190059 - 15/11/07 03:05 PM Re: updating [Re: RoCk]
nomer2007 Offline
Babel fish

Registered: 18/10/07
Posts: 92
Quote:
346 channel invite nick time
347 channel :End of Channel Invite List
348 channel exception nick time
349 channel :End of Channel Exception List


RAWS - does that raws need to be updated first or not?

Top
#190169 - 17/11/07 02:25 AM Re: updating [Re: nomer2007]
nomer2007 Offline
Babel fish

Registered: 18/10/07
Posts: 92
hope you can help me on this

Top
#190170 - 17/11/07 02:34 AM Re: updating [Re: nomer2007]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009

If I knew what the hell you were talking about, I might. confused

Top
#190172 - 17/11/07 02:55 AM Re: updating [Re: RoCk]
nomer2007 Offline
Babel fish

Registered: 18/10/07
Posts: 92
346 channel invite nick time
347 channel :End of Channel Invite List
348 channel exception nick time
349 channel :End of Channel Exception List


These are raws for the invite list and exception lists on the channel
Is there a way to get them?

mode $chan +I $nick
mode $chan +e $nick

Top
#190173 - 17/11/07 04:08 AM Re: updating [Re: nomer2007]
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
He's talking about the $ibl $iel and $iil

you can in theory loop through I guess

alias iblget {
var %x = 1
while (%x <= $ibl(#channel,0)) {
echo -a $ibl(#channel,%x)
inc %x
}
}


alias iilget {
var %x = 1
while (%x <= $iil(#channel,0)) {
echo -a $iil(#channel,%x)
inc %x
}
}

alias ielget {
var %x = 1
while (%x <= $iel(#channel,0)) {
echo -a $iel(#channel,%x)
inc %x
}
}

This will echo the 3
_________________________
Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Top
#190175 - 17/11/07 06:38 AM Re: updating [Re: Lpfix5]
nomer2007 Offline
Babel fish

Registered: 18/10/07
Posts: 92
Thanks for the reply..
It does not work though...

Top
#190176 - 17/11/07 07:35 AM Re: updating [Re: nomer2007]
Horstl Offline
Hoopy frood

Registered: 03/11/06
Posts: 1559
Loc: Germany
Originally Posted By: nomer2007
How could you update the Invite && Exception list of the channel?

You'll update mIRCs internal lists (e.g. to handle with scripts bans / excepts etc that had been set before you joined the channel) with these commands:

ban list (ibl): /mode #channel +b
ban exceptions list (iel): /mode #channel +e
invite list (iil): /mode #channel +I

Originally Posted By: nomer2007
RAWS - does that raws need to be updated first or not?
The raws mentioned are just the server's replies to these commands. mIRC is updating it's internal lists when receiving the raw replies.
You could halt the display of the raw replies with a script (using the "haltdef" command).


Edited by Horstl (17/11/07 07:44 AM)

Top
#190180 - 17/11/07 10:54 AM Re: updating [Re: Horstl]
nomer2007 Offline
Babel fish

Registered: 18/10/07
Posts: 92
How can it be collected?

Top
#190181 - 17/11/07 11:17 AM Re: updating [Re: nomer2007]
Horstl Offline
Hoopy frood

Registered: 03/11/06
Posts: 1559
Loc: Germany
What in detail do you mean with "collected"? You can refer to the current lists that mIRC keeps for some channel with the corresponding identifiers:
/help $ibl
...and apply other commands to the results, e.g. display, evaluate, or save to file..

Top
#190227 - 18/11/07 04:13 AM Re: updating [Re: Horstl]
nomer2007 Offline
Babel fish

Registered: 18/10/07
Posts: 92
ok i checked it and try this
Code:
//echo -a $iel($chan,0)


But it returns the total numbers of the exception addresses on the channel.

and if it's 1-4 or some number it returns the Nth position.

how can i collect it using var and return it like

Quote:
echo -a address1 address2 address3

Top
#190239 - 18/11/07 05:39 AM Re: updating [Re: nomer2007]
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
I already stated it nomer

heres one example

put this in remotes then type echo -a $ielget

Make sure you change #channel to your channel or replace #channel with $1 and use //echo -a $ielget(#channel)

alias ielget {
var %x = 1
while (%x <= $iel(#channel,0)) {
var %y = $instok(%y,$iel(#,%x),%x,32)
inc %x
}
.timer 1 2 echo -a %y
}
_________________________
Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Top
#190244 - 18/11/07 06:44 AM Re: updating [Re: Lpfix5]
nomer2007 Offline
Babel fish

Registered: 18/10/07
Posts: 92
The first that you have stated didn't worked but thanks to it i managed to do what i want it to do thanks

Top