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 

BadServ.tcl modification

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


Joined: 10 Aug 2010
Posts: 13
Location: Sofia, Bulgaria

PostPosted: Sat Jan 28, 2012 11:01 am    Post subject: BadServ.tcl modification Reply with quote

Hi, all

i want to modify badserv.tcl when user use !voice, !v or + in channel
bot whois user, and if user in a $server get voice..

Here tcl:

Code:
##############################
# All Right Reserved by Paco #
##############################
# Vuvedete serverite, koito ako nqkoj potrebitel, koito e wlqzal na tqh da mu bude daden op ili voice!

set opvoiceserv {
  {irc.server1.com}
  {irc.server2.com}
}

# Napishete kanala, za koito da raboti scripta.
set chan "#Channel"


## Script ##

bind pub -|- + pun:server
bind pub -|- !v pun:server
bind pub -|- !voice pun:server

###################
#Start voice check#
###################
proc pun:server {nick uhost hand chan} {
  global botnick

  if {[string tolower $botnick] == [string tolower $nick]} {
    return
  }

  putquick "whois $nick"
}


# Start Voice check #
bind raw - 312 server:whois

proc server:whois {from key bns} {
  global chan opvoiceserv
  set nick [lindex [split $bns " "] 1]
  set server [string tolower [lindex [split $bns " "] 2]]
  foreach bserv $opvoiceserv {
   if {[string tolower $bserv] == $server} {
     pushmode $chan +v $nick
     return
    }
  }
}

putlog "Loaded Op/Voice server check tcl writen by Paco (irc.techno-link.net)"


but.. when type !voice on channel ->

Quote:
Tcl error [pun:server]: wrong # args: should be "pun:server nick uhost hand chan"



Where is my error? Sad
Back to top
View user's profile Send private message Visit poster's website
SmasHinG
Voice


Joined: 29 Aug 2011
Posts: 29

PostPosted: Sat Jan 28, 2012 12:03 pm    Post subject: Reply with quote

proc pun:server {nick uhost hand chan} {



proc pun:server {nick uhost hand chan text} {
_________________
SmasHinG®
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