Author Topic: Auto +v script needed  (Read 1610 times)

angelicwhimpers

  • Newbie
  • *
  • Posts: 11
Auto +v script needed
« 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
« Last Edit: February 21, 2015, 04:43:14 PM by angelicwhimpers »

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Auto +v script needed
« Reply #1 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.

The IceChat God

Ndtm

  • Newbie
  • *
  • Posts: 5
Re: Auto +v script needed
« Reply #2 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
« Last Edit: February 21, 2015, 08:02:25 PM by Ndtm »

angelicwhimpers

  • Newbie
  • *
  • Posts: 11
Re: Auto +v script needed
« Reply #3 on: February 21, 2015, 09:12:10 PM »
thank you alll!!!!!