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 

How can I make a !chanset command?

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


Joined: 25 Nov 2007
Posts: 9
Location: Local Disc (C:)

PostPosted: Sat Feb 23, 2008 6:47 am    Post subject: How can I make a !chanset command? Reply with quote

How can I make a !chanset command?..
(Not on DCC)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Feb 23, 2008 9:11 am    Post subject: Reply with quote

A little forum search would've returned useful results. Check this.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sun Feb 24, 2008 3:57 am    Post subject: Reply with quote

sir_fz

could we use this pub command to set Allprot..

example : !chanset #oke ap:limit 0 or the other such as !chanset #oke +google
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Feb 24, 2008 7:54 am    Post subject: Reply with quote

The code I wrote won't work with AllProtection's chansets, however this should:
Code:
bind pub n|n !chanset pub:chanset

proc pub:chanset {nick uhost hand chan arg} {
 set set [lindex [split $arg] 0]
 set value [join [lrange [split $arg] 1 end]]
 if {$value == ""} {
  catch {channel set $chan $set} error
 } {
  catch {channel set $chan $set $value} error
 }
 if {$error == {}} {
  puthelp "privmsg $chan :Successfully set $arg"
 } {
  puthelp "privmsg $chan :Error setting $arg: [lindex $error 0]..."
 }
}

Example: !chanset ap:textl 5:2 60 k:kb 2
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sun Feb 24, 2008 8:38 am    Post subject: Reply with quote

perfect..

now i can manage allprot without log to partyline..
thanks sir_Fz

u r my fav coder Embarassed
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