egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

request of Why command tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ircguru
Voice


Joined: 21 Jul 2007
Posts: 5

PostPosted: Sun Jul 22, 2007 4:14 pm    Post subject: request of Why command tcl Reply with quote

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!
Back to top
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sun Jul 22, 2007 8:36 pm    Post subject: Reply with quote

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: Razz

Code:

#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.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
ircguru
Voice


Joined: 21 Jul 2007
Posts: 5

PostPosted: Fri Aug 03, 2007 5:15 am    Post subject: Sir Awyeah Reply with quote

Your code is perfect but that is just showing in bot dcc not in onotice .. can u please check it !!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber