mad sick cool



Hello everyone, I have a problem with my new script, I always get an error!
The old script for msg channel copie is this!


I couldn't find anything here in the old thread unfortunately
OLD THREAD FOR COPY TEXT CHANNEL



Code
OLD_SCRIPT CODE COPY MSG CHANNEL

on *:TEXT:*:#irc-channel:{
  if $network == irc-server { scid -at1 relay $unsafe($chan $1-) }
}

alias -l relay {
  if $network == irc-server && $me ison #irc-channel {
    msg #irc-channel $2-
  }
}



Code
NEW SCRIPT COED COPY MSG CHANNEL BY TRIGGER WORD

on *:TEXT:*:#irc-channel:{
  if ($network == irc-server) {
     if (trigger-word,strip($1-),32) {
      .scid -at1 relay $nick $1-
     }
  }
 }

on *:TEXT:*:#irc-channel:{
   if ($network == irc-server) {
     if ($istok(trigger-word,strip($1-),32)) {
       .scid -at1 relay $nick $1-
     }
   }
 }




So the new script should only make the ANNOUNCED MESSAGE COPY from an irc network channel with a TRIGGER WORD
but only get error and so on displayed unfortunately




greets to all wink
mad sick cool