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!
-
ThE-UnNaMeD
- Voice
- Posts: 9
- Joined: Sun Nov 25, 2007 11:08 am
- Location: Local Disc (C:)
-
Contact:
Post
by ThE-UnNaMeD »
How can I make a !chanset command?..
(Not on DCC)
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
A little forum
search would've returned useful results. Check
this.
-
elisca
- Halfop
- Posts: 65
- Joined: Sat Jan 27, 2007 4:23 am
- Location: in the middle of nowhere
Post
by elisca »
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
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
The code I wrote won't work with AllProtection's chansets, however this should:
Code: Select all
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
-
elisca
- Halfop
- Posts: 65
- Joined: Sat Jan 27, 2007 4:23 am
- Location: in the middle of nowhere
Post
by elisca »
perfect..
now i can manage allprot without log to partyline..
thanks sir_Fz
u r my fav coder