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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
ircguru
Voice
Posts: 5 Joined: Sat Jul 21, 2007 8:01 am
Post
by ircguru » Sun Jul 22, 2007 4:14 pm
hello sir. i need a tcl which gives a why command to op notice when any op join the channel with different nicks .. so the bot will give onotice to channel thanQ!
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Sun Jul 22, 2007 8:36 pm
This script will opnotice the
WHY command to the channel when a user gets
opped by Chanserv (better to check on +o mode, rather than on join). Not the best of solutions, but here you go:
Code: Select all
#Set your channel services name@services here
set chanserv "chanserv@services.dal.net"
bind mode - "*" check:why:on:op
bind notc - "*" chanserv:why
proc check:why:on:op {nick uhost hand chan mode arg} {
global chanserv chanservwhy
set arg [string tolower $arg]
if {[string equal "+o" $mode] && [string equal "ChanServ" $nick] && [botisop $chan] && ![isbotnick $arg]} {
putserv "PRIVMSG $::chanserv :WHY $chan $arg"
set chanservwhy($arg) 1
}
}
proc chanserv:why {nick uhost hand text {dest ""}} {
global chanservwhy
set text [stripcodes bcruag $text]
set nick [string tolower [lindex $text 0]]
if {[info exists chanservwhy($nick)]} {
if {[isbotnick $dest] && [string equal "ChanServ" $nick] && [string match "*has * access to #* *Reason:*" $text] && [string match -nocase "#*" [string trimright [lindex $text 5] .]]} {
putquick "ONOTICE [string trimright [lindex $text 5] .] :$text"
unset chanservwhy($nick)
}
}
}
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
ircguru
Voice
Posts: 5 Joined: Sat Jul 21, 2007 8:01 am
Post
by ircguru » Fri Aug 03, 2007 5:15 am
Your code is perfect but that is just showing in bot dcc not in onotice .. can u please check it !!