mIRC Home    About    Download    Register    News    Help

Print Thread
#57331 25/10/03 05:21 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
k what im trying to do is when i join channel it saves it to a %var but after 5 channels it pushes the first one off and saves the newest one to 5 spot....
kinda like this:
%resentchannels #1 #2 #3 #4 #5
and then after
%resentchannels #2 #3 #4 #5 #
i hope i made tihs clear =/

Code:
alias join {
  if ($numtok(%resentchannels,32) >= 5) { 
    set %resentchannels $stip(%resentchannels,2) $stip(%resentchannels,3) $stip(%resentchannels,4) $stip(%resentchannels,5) $1-
    join $1-
  }
  else {
    set %resentchannels %resentchannels $1-
    join $1-
  }
}


Need amazing web design for low price: http://www.matrixn3t.net
#57332 25/10/03 05:30 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Code:
alias join {
  /set %recentchannels $addtok(%recentchannels, $1, 32)
  if ($numtok(%recentchannels, 32) > 5) /set %recentchannels $gettok(%recentchannels, -5-, 32)
  /join $1
}


-KingTomato
#57333 25/10/03 05:40 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
thx


Need amazing web design for low price: http://www.matrixn3t.net

Link Copied to Clipboard