Author Topic: Changing onop-Text  (Read 3350 times)

armagedon

  • Guest
Changing onop-Text
« on: April 22, 2005, 03:23:26 AM »
Hello,
at scripting i am a n00b. So this is my question:

I want to change the text 4 onop. Means, when i get op in a Channel, the the message should by like "Thank you for the @ in #test, Nickname"
#test= the channel
Nickname= the nick of the one, who give me the op.

I am using the CScript.

Thanks 4 help.

Sorry 4 my bad english.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Changing onop-Text
« Reply #1 on: April 22, 2005, 08:36:27 AM »
I dont think CScript has an ONOP Script Event added, so you will need to add this event to one of the files, and then save it. Does not matter which file you save it to, or even a new one.
Code: [Select]

Sub ONOP(ModeSet,Nickname,Host,ModeSetter,ModeSetterHost,Channel,ServerNumber)
if ModeSet = True and Nickname = MyNickName(ServerNumber) then
  SendCommand "/msg " & Channel & " Thank you for the @ on " & Channel & ", " & ModeSetter,ServerNumber
end if
End Sub

Read the help file section on Scripting for more information.
The IceChat God