Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

3 876 Posts in 868 Topics- by 723 Members - Latest Member: tablarock

22 May 2012, 17:18
Select Language English | Russian ru | German
Main PageIRC Client KVIrc forumKVIrc discussionKVIrc scriptingAuto message
Pages: [1]
Print
Author Topic: Auto message  (Read 1440 times)
0 Members and 1 Guest are viewing this topic.
greenberry
Новичок
*

Репутация: 0
Posts: 3


View Profile
« on: 24 January 2011, 15:19 »

Hi,

I would want to know a script to plan an automatic message when enter an any channel and one when enter a specific channel.

Thanks   Sad
Logged
alexzulu
Постоялец
***

Репутация: 29
Posts: 181



View Profile Email
« Reply #1 on: 24 January 2011, 18:45 »

Here is the simplest version of the script. Enter this code in the tester script. in the condition can change the channel. or if the condition is to remove it will work on all channels.

Code:
event(OnMeJoin,auto_message)
{
if($chan.name == "#bash")
{
say "awe ppl!!!"
}
}
Logged

сеть freenode, каналы #kvirc и #kvirc-ru
greenberry
Новичок
*

Репутация: 0
Posts: 3


View Profile
« Reply #2 on: 25 January 2011, 05:38 »

Thanks indeed!!! Smiley If however did I want to delay the message that parameter must plan?
Thanks
Logged
alexzulu
Постоялец
***

Репутация: 29
Posts: 181



View Profile Email
« Reply #3 on: 25 January 2011, 13:20 »

sorry, I bad speak English and can not always understand what they want from me.
if you just want to delay the output message then the code will change as follows:

Code:
event(OnMeJoin,auto_message)
{
if($chan.name == "#bash")
{
                timer -s (idle,5000)
                {
        say "awe ppl!!!"
                }
}
}

5000 is delay time in milliseconds

if you want to disable automatic greeting we must execute the following:

Code:
/eventctl -d OnMeJoin auto_message

enable

Code:
/eventctl -e OnMeJoin auto_message
Logged

сеть freenode, каналы #kvirc и #kvirc-ru
greenberry
Новичок
*

Репутация: 0
Posts: 3


View Profile
« Reply #4 on: 26 January 2011, 12:44 »

Yes, It's exact!
Thank you so much! Smiley
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic