mIRC Home    About    Download    Register    News    Help

Print Thread
#65121 24/12/03 08:54 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
looking to make a channel central like mirc but i want to keep the topic history and was wondering if u cud show me where to look for one that keeps the last couple of topics with or without using variables. thanx


k1ll3rz
#65122 24/12/03 09:38 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
use hash tables then, need to keep the info somewhere when the dialog is closed,

Code:
on *:topic:#:{
  hadd -m topics $+($cid,:,#,:,$calc($hmatch(topics,$+($cid,:,#,:*),0)+1)) $1-
}


then you can get the history with:
Code:
alias topichistory {
  var %x = 1
  while ($hget(topics,$+($cid,:,$active,:,%x))) {
    echo -a $ifmatch
   inc %x
 }
}

not tested but something like that should work.
if you replace $cid for $network you could keep the topics after you quit just using /hsave to save the table, as $cid's might be different when you connect again.


Link Copied to Clipboard