Author Topic: Auto rejoin channel, when kicked  (Read 14920 times)

Yugi

  • Newbie
  • *
  • Posts: 29
Auto rejoin channel, when kicked
« on: February 22, 2004, 10:26:03 AM »
Quote from: Snerf
Quote from: Yugi
Hi! Me again!
I have one more thing to suggest: can you add an option

in the IceChat client for the user to rejoin the channel automatically, when he is kicked.
Thanks, Yugi

:!:


No , I can not add that option, because you can make a script to do

this.

Hi! Can you make that script for me, please? :?:  I am completely new to Icechat scripting and I

don't know how to write it.  :oops:
Thanks in advance!
Yugi :roll:  :shock:
IceChat - Cool to the core!

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Rejoin on Kick
« Reply #1 on: February 22, 2004, 10:23:41 PM »
Place this inside an existing or new Script

File

------------------------starts here------------------

Sub
Code: [Select]

Sub ONKICK(Nickname,Host,Channel,WhoKicked,Reason,ServerNumber)

If Nickname = Getidentifier("$me",ServerNumber) then
     SendCommand "/join " & Channel, ServerNumber
End if

End Sub


------------------------end here------------------

Then save the File and Close and Update
« Last Edit: August 02, 2005, 12:07:03 PM by Snerf »
The IceChat God

Yugi

  • Newbie
  • *
  • Posts: 29
Rejoin on Kick
« Reply #2 on: February 26, 2004, 12:10:23 AM »
Thanks for the script, Snerf! It works great! :D


Yugi
IceChat - Cool to the core!

KrekZot

  • Guest
Auto rejoin channel, when kicked
« Reply #3 on: April 02, 2004, 02:38:26 PM »
Sub

ONKICK(Nickname,Host,Channel,WhoKicked,Reason,ServerNumber)
'this subroutine fires when a user is kicked in a channel


'The Nickname is who was kicked, and WhoKicked is the person who
'performed the kick
'
if Nickname =

Getidentifier("$me",ServerNumber) then
SendCommand "/join " & Channel, ServerNumber
end if
End Sub





i copy and paste it into a new empty script in icechat and saved it, and testing it and it dont work? when i

be kicked the script dont rejoin?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Auto rejoin channel, when kicked
« Reply #4 on: April 02, 2004, 03:39:58 PM »
Well, the script does work, as I have tested it, and

others.
Perhaps the script is not loaded, is the ICE file listed in the "View Script File" menu, in the Script Editor?  If

so, click it and make sure the ONKICK sub is in there.
The IceChat God

KrekZot

  • Guest
Auto rejoin channel, when kicked
« Reply #5 on: April 02, 2004, 04:24:22 PM »
i copy and paste it in a new empty script and save it. and

then i press load script and pick up that file and press update and exit.

but now by clicking view script file and

then update and exit and it now still works fine....

KrekZot

  • Guest
Auto rejoin channel, when kicked
« Reply #6 on: April 03, 2004, 12:20:42 PM »
i asked too how to rejoinafterkick set off on some servers

where they dont like that. on some other servers they are doing funkicks. so i cant set on and off again.

would u

please repeat your answer here, i also dont understand servernumber? how to see that? or are u talking about other

numbers?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Auto rejoin channel, when kicked
« Reply #7 on: April 04, 2004, 09:24:30 AM »
ServerNumber is the which server the KICK, or JOIN, or

whatever event is triggered.  Because IceChat is Multi-Server capable, you need to know, if you are on more then 1 server,

which Server triggered the Event.
The IceChat God

KrekZot

  • Guest
Auto rejoin channel, when kicked
« Reply #8 on: April 04, 2004, 01:03:30 PM »
Quote from: Snerf
ServerNumber is the which server the

KICK, or JOIN, or whatever event is triggered.  Because IceChat is Multi-Server capable, you need to know, if you are on more

then 1 server, which Server triggered the Event.


give me an example. where i can see the

servernumber of tiscali.dk.quakenet.org ?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Auto rejoin channel, when kicked
« Reply #9 on: April 05, 2004, 07:32:33 AM »
Have you read the help files on Scripting?
You may find it

usefull.
The IceChat God