All pastes #771435 Raw Edit

Something

public text v1 · immutable
·published 2007-11-12 23:41 UTC
rendered paste body
alias addchan {
  .writeini autojoin.ini Channels $1 Chan
}
alias unaddchan  {
  .remini autojoin.ini Channels $1
}
 
on *:connect:{
  if ($network = swiftirc) {
    .var %x = 1
    while (%x <= $ini(autojoin.ini,0)) {
      .join $readini(autojoin.ini,Channels,%x)
      .inc %x
    }
  }
}