mIRC Home    About    Download    Register    News    Help

Print Thread
#146866 09/04/06 07:00 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Due to the nature of this script, I'm unwilling to run it myself, and I only wrote it upon request. The original requester has been warned that usage of the script might get them banned from channels and/or networks.

The original requester states that the code does not work, yet, I don't know why it doesn't or anything else.

The code is supposed to relay from multiple channels over multiple networks to all channels on all networks, except for the channel that the information is being relayed from.

Here's what I came up with that they say isn't working
Code:
 alias smsg {
  var %x = $comchan($me,0),%y = 1
  while %y <= %x {
    if $comchan($me,%y) != $1 {
      .msg $comchan($me,%y) $2-
    }
    inc %y
  }
}
alias relay {
  return $+($chr(40),$1,$chr(41)) $+($chr(40),$2,@,$network,$chr(41))
}
on *:text:*:#:{
  .scon -at1 smsg $chan $relay($nick,$chan) $1-
}
on *:action:*:#:{
  .scon -at1 smsg $chan $relay($nick,$chan) $1-
}
on *:join:#:{
  .scon -at1 smsg $chan $relay($nick,$chan) joined
}
on *:part:#:{
  .scon -at1 smsg $chan $relay($nick,$chan) parted
}
on *:kick:#:{
  .scon -at1 smsg $chan $relay($knick,$chan) kicked by $nick
}
on *:quit:{
  .scon -at1 smsg $comchan($me,1) $relay($nick,$comchan($me,1)) quit
}
on *:mode:#:{
  .scon -at1 smsg $chan $relay($nick,$chan) set modes $1-
}
on *:ban:#:{
  if $bnick {
    .scon -at1 smsg $chan $relay($bnick,$chan) banned by $nick
  }
}
 

#146867 09/04/06 07:33 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
logic looks right to me

when they say "its not working" did they elaborate? Maybe only a part isnt working, any errors?

alias relay {
return $+($chr(40),$1,$chr(41)) $+($chr(40),$2,@,$network,$chr(41))
}

you might need to escape the $network as $!network and for testing maybe not use the ( ) to decorate the info

#146868 10/04/06 07:35 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Looks good at a glance to me as well, sure he didnt just say it didnt work becuase of the DOT on ".msg $comchan($me,%y) $2-" ? aka he didnt see them.

#146869 10/04/06 08:45 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Thanks to both of you. I will be making further detailed enquiries next time I see the person online.


Link Copied to Clipboard