IceChat Forums

IceChat 7 => IceChat 7 Scripts => Topic started by: angelicwhimpers on February 21, 2015, 01:02:44 PM

Title: Auto +v script needed
Post by: angelicwhimpers on February 21, 2015, 01:02:44 PM

i have looked through and though there are lots of auto voice scripts i did not see the one i needed. when people join my room i would like to have only the ones with a Cap in there nick voice..... that means the nick  "One" would get voiced while the nick "one" would not

please help i have been asking and asking people and just gotten the run around or codes that dont seen to work.


i was given this code but its not working the version i am running says icechat 7.8


Sub ONJOIN(Nickname,Host,Channel,ServerNumber)

if Channel = "#RoomName" then
   ThisNick = GetIdentifier("$nick(" & Channel & "," & i & ")")

   if mid(ThisNick ,1,1) = UCase( mid( ThisNick,1,1 ) ) then
      SendCommand "/mode #RoomName +v " & ThisNick
   else
'            SendCommand " do something else"
   end if
'
end if

End Sub
Modify message
Title: Re: Auto +v script needed
Post by: Snerf on February 21, 2015, 06:56:23 PM
What is the purpose of using ThisNick ?

The variable Nickname that is passed by the function, is the Nick that joined to room.
Also the variable Channel, is the Channel they joined.

Title: Re: Auto +v script needed
Post by: Ndtm on February 21, 2015, 07:49:42 PM
Just as Snerf said, the script should function with just
Code: [Select]
Sub ONJOIN(Nickname,Host,Channel,ServerNumber)
if Channel = "#RoomName" then
   if mid(Nickname ,1,1) = UCase( mid(Nickname,1,1 ) ) then
      SendCommand "/mode #RoomName +v " & Nickname,ServerNumber
   else
'            SendCommand " do something else"
   end if
end if
End Sub
Title: Re: Auto +v script needed
Post by: angelicwhimpers on February 21, 2015, 09:12:10 PM
thank you alll!!!!!