mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 4
B
Brenduh Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Jun 2004
Posts: 4
I have this little script someone wrote for me that, when you devoice someone it adds them to a devoice list. So they won't get a voice back just by parting and rejoing the channel. It use to work, but I don't know why it doesn't now.

This is in remotes:
on @*:DEVOICE:#:/guser DevoiceList $vnick 2

#AutoDevoice on
on @*:TEXT:*+v*:#: if ($nick isop #) { /ruser DevoiceList $address($1,2)| /mode # +v $1 }
on @*:VOICE:#:if ($level($address($vnick,2)) = DevoiceList ) { /mode # -v $vnick | /notice $nick $vnick is on my Auto-Devoice List - To voice them, type: $vnick +v in the channel. }
#AutoDevoice OFF
----------------------------------------------

The devoice part is working well. Setting the person -v if they come back and someone else voices them. It's the revoiceing part that isn't working. You are suppose to type Nick +v in the room and the bot then revoices and removes them from the list. But it isn't.

My userlist looks like this:
DevoiceList:*!*@removedmyip.com

But I am getting this error when an op trys to remove them:
* /ruser: no such user *!*@removedmyip.com

Thanks for any help you can give me smile

Last edited by Brenduh; 09/01/05 07:43 PM.
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
$address($1,2)|

Put a space between ) and |
$address($1,2) |

Joined: Jun 2004
Posts: 4
B
Brenduh Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Jun 2004
Posts: 4
Thank you thank you thank you Iori I can't thank you enough. Sorry for posting such a silly problem, I'm so thankful for your second pair of eyes!!!

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Ah you're welcome smile but how did you know I have a second pair of eyes? grin

Joined: Jun 2004
Posts: 4
B
Brenduh Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Jun 2004
Posts: 4
lol

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
In addition,
Code:
#AutoDevoice on

on @*:TEXT:*+v*:#: {
  if ($nick isop #) { 
    ruser DevoiceList $address($1,2)
    mode # +v $1 
  }
}

on @*:VOICE:#: {
  if ($level($address($vnick,2)) = DevoiceList ) { 
    mode # -v $vnick 
    notice $nick $vnick is on my Auto-Devoice List - To voice them, type: $vnick +v in the channel. 
  }
}
#AutoDevoice [color:red] end [/color]

* It should be End not On.


Link Copied to Clipboard