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 

!chanset (pub)

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


Joined: 03 Mar 2007
Posts: 185
Location: Spain - Barcelona

PostPosted: Fri Jan 29, 2010 6:01 pm    Post subject: !chanset (pub) Reply with quote

Hi

someone tcl script for public command !chanset ?

Thanks.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Fri Jan 29, 2010 10:44 pm    Post subject: Reply with quote

Code:
 proc chanset:pub {nick uhost hand chan text} {
  set chanset [lindex [split $text] 0]
  if {[regexp {^(\+|-)} "$chanset"]} {
   set result [catch {channel set $chan $chanset} error]
   if {$result == 1} {
    puthelp "NOTICE $nick :error trying to set modes \{ $chanset \} on $chan: $error"
    return 0
   } else {
    puthelp "NOTICE $nick :Successfully set modes \{ $chanset \} on $chan"
    return 1
   }
  } else {
   set option [join [lrange [split $text] 1 end]]
   set result [catch {channel set $chan $chanset $option} error]
    if {$result == 1} {
     puthelp "NOTICE $nick :error trying to set modes \{ $chanset $option \} on $chan: $error"
     return 0
    } else {
     puthelp "NOTICE $nick :Successfully set modes \{ $chanset $option \} on $chan"
     return 1
    }
  }
 }
Its basic, dont have the time to work on it as a script. But am sure you or someone else can "modify" it to suit your taste Smile
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Jan 30, 2010 2:33 pm    Post subject: Reply with quote

This has been requested before, use the search function. Here's an old topic.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
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