mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Nov 2003
Posts: 102
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2003
Posts: 102
Ok i am sry but i cant get this to work. It dont respond to commands from other ops but if i use the client running the script to issue the commands it says the chans was added and deleted with msg's but not a damn thing happens when they join my channel. Idk what it is...I know im prob coming off as dumb here because i know you said you tested it. I am sorry i cannot figure it out. like i said it was working before (the first script) but only when i added my own channel as a bad one. frown


Rock and Metal Music videos ON DEMAND!
<<<<<< http://www.tormented.tv >>>>>>
Joined: Nov 2003
Posts: 102
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2003
Posts: 102
do the commands have to be issued in a certin channel or anything?


Rock and Metal Music videos ON DEMAND!
<<<<<< http://www.tormented.tv >>>>>>
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The only condition on where the commands are to be entered, is that the bot must be on/in the same channel/room.

Just noticed a problem in the code. Change
Code:
on *:text:!*:#:{
  if $istok($hget(Badchan,$+($network,.,$chan)),$nick,44) {
    if $1 == !addchan {    chan add $strip($2-)  }
    elseif $1 == !remchan {    chan rem $strip($2-)  }
  }
}
 
to
Code:
on *:text:!*:#:{
  if $istok($hget(Badchan,$+(oh.,$network,.,$chan)),$nick,44) {
    tokenize 32 $strip($1-)
    if $1 == !addchan {    chan add $strip($2-)  }
    elseif $1 == !remchan {    chan rem $strip($2-)  }
  }
}
 

I think that should resolve your issue of the commands not being recognized.

Last edited by RusselB; 12/12/08 02:40 AM.
Joined: Nov 2003
Posts: 102
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2003
Posts: 102
lol i swear i am doing everything right....
Maybe its something to do with the room name and it having a underscore or something? It works perfect in my own channel that i am idle in...even the ops get the msg....they still cant issue commands ...but it works for #chat18+
get nothing for #Adult_Zone


Rock and Metal Music videos ON DEMAND!
<<<<<< http://www.tormented.tv >>>>>>
Page 2 of 2 1 2

Link Copied to Clipboard