Author Topic: Nick Change Script  (Read 2313 times)

TheCellist42

  • Full Member
  • ***
  • Posts: 143
    • TheCellist42.com
Nick Change Script
« on: April 05, 2008, 11:49:27 PM »
To Create A Script To send A Command when a nick is changed to a certain nick..I have this

Code: [Select]
Sub ONNICK(Nickname,Host,ServerNumber)
If Nickname = "Unidentified" then
SendCommand "/mode " & Channel & " -v " & Nickname & " "
End If
End Sub

What Would I Use To De-Voice For A Nick Change To Unidentified15685 For Example, What Would I Use After Unidentified?

-Sam (O_O)
~ Sam
~ Visit my website at http://www.TheCellist42.com

Morio

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 256
Re: Nick Change Script
« Reply #1 on: April 06, 2008, 12:03:39 AM »
Code: [Select]
Sub ONNICK(NewNick,OldNick,ServerNumber)

End Sub

that is how the ONNICK sub should look
"I don't know what World War 3 will be fought with, but I know World War 4 with be fought with sticks and stones." - Albert Einstein

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Nick Change Script
« Reply #2 on: April 06, 2008, 04:25:13 PM »
In the IceChat Editor, when you go to the Scripts Tab, there is a menu called "Script Events"
Using the VB Scripts (IceChat 5 Style) you can select one from the list, and it gives you the proper syntax.
The IceChat God