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.
Old posts that have not been replied to for several years.
w0lfstar
Voice
Posts: 22 Joined: Fri May 20, 2005 9:26 am
Post
by w0lfstar » Tue Jul 19, 2005 5:49 pm
hello everyone,
im looking for a way to live-parse server connects through my eggdrop.
ie, user joe connects to the internet relay chat server and then the eggdrop says something like: USER CONNECT: <
joe@cool.host.org > at <time>
is there anyone able to help with this request? the chat server software is unrealircd, latest version. eggdrop in use is 1.6.15 - any help is appreciated
greets wolfy
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Tue Jul 19, 2005 8:47 pm
you need to have your bot opered and set umode +c (or whatever Unreal's umode will show you those "client connecting" notices)
then use this:
Code: Select all
set chan #yourchannel
bind raw - NOTICE foo
proc foo {f k t} {
scan $t %s target
scan $::server {%[^:]} server
set msg [join [lrange [split $t] 1 e]]
if {$f == $server && $target == $::botnick} {
if {[str mat -noc "*client connecting*" $t] && [botonchan $::chan]} {
puthelp "privmsg $::chan :[ctime [unixtime]] $msg"
}
}
}
w0lfstar
Voice
Posts: 22 Joined: Fri May 20, 2005 9:26 am
Post
by w0lfstar » Wed Jul 20, 2005 3:53 pm
hiya,
this works almost great thanks
but it's giving me this line twice:
[22:03] Tcl error [foo]: can't read "server": no such variable
greets wolfy