This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Ircop bot: On Connect send message to user

Old posts that have not been replied to for several years.
Locked
f
freakinson
Voice
Posts: 5
Joined: Sat May 07, 2005 10:11 am

Ircop bot: On Connect send message to user

Post by freakinson »

Hiya all.

I need a script, which will cause my ircop eggdrop to send onconnect message to everyone, who connect to the server. Can you give me such thing?
f
freakinson
Voice
Posts: 5
Joined: Sat May 07, 2005 10:11 am

p.s.

Post by freakinson »

The ircd-version is ircd-hybrid
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

how does the bot know when someone enters the network? will he be notified for everyone? whats the RAW code? that might help us helping you ^^.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Anope, Epona services etc have that function when enabled. All users receive an annoying message of the day (of some sort). There are also notices that only IRCops see.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Something like this should work. I had something similar on my IRCD which was UnrealIRCD for checking open proxy ports. Your IRCD will most likley work slightly different. The message opers recive when a client connects contains all the information about that user including the nick they connect with. If this script doesnt work post back the client connecting message so I can see which element in the list needs to be caught to find the nick.

Code: Select all

bind raw - NOTICE connect_msg

set gCatchNotice "Client connecting"

proc connect_msg {from keyword arg} {
    global gCatchNotice
    if {([string match "*$gCatchNotice*" $arg])} {
        set nick [lindex [split $arg] 9]
        putquick "PRIVMSG $nick :welcome to my irc network blah blah blah"
    }
}
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
f
freakinson
Voice
Posts: 5
Joined: Sat May 07, 2005 10:11 am

Re:

Post by freakinson »

^Doom^ thanks for the script.

May be something in it is missing because it doesnt work...

10:55a <freak> [10:55] -NOTICE- *** Notice -- Client connecting: c4` (c4@212.72.214.213) [212.72.214.213] {remote_users} [fReAk iNsIdE]

This is the notice which is generated by the ircd... but the bot do nothing.. can you modify your script for this kind of notice, please
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

change

Code: Select all

set nick [lindex [split $arg] 9]
to

Code: Select all

set nick [lindex [split $arg] 5]
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
f
freakinson
Voice
Posts: 5
Joined: Sat May 07, 2005 10:11 am

re

Post by freakinson »

^DooM^ wrote:change

Code: Select all

set nick [lindex [split $arg] 9]
to

Code: Select all

set nick [lindex [split $arg] 5]
I have done it... still no change :-(
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

ok add this to the script after the putserv

Code: Select all

putlog "[lindex [split $arg] 5]"
then see what $arg 5 contains. change the number till it contains the nick of the user connecting if that is what the problem is. also does your bot see server notices? you may need to set its usermode to see them. if it can see them it should be displayed on the partyline.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
f
freakinson
Voice
Posts: 5
Joined: Sat May 07, 2005 10:11 am

re:

Post by freakinson »

hey man, thanks.. it works with
set nick [lindex [split $arg] 6]

I want also to ask you if there is a script, which grabs /stats p report of the hybrid-ircd, and say it to the connecting user.. i mean i want script, which will say to the user: "The active ircops at the moment are: nick1, nick2, nick3"... can you tell me if there is something like that? I`ve searched egghelp.org but there was nothing...
?
Locked