I'm grabbing raws for topic and setting them as variables. I then compare the variables to a text file and write if not already there. Problem is if i join several channels at once.
This is pretty much how i'm doing it.
Code:
 on *:JOIN:*: {
  if ($nick == $me) goto Twrite
  :Twrite
  .set %T3 %T1 %T2
  if $read(Topic.txt,nw,%T3) { Halt }
  else { /write -i Topic.txt %T3 }
}
raw 332:*: set %T2 To: $3- 
raw 333:*: set %T1 $+($2 Topic was set by $3 on $Date(ddd. mmm. dd yyyy))  

Works fine if i join 1 channel, but doesnt when i join several. Any ideas what i might do to get around this?