| View previous topic :: View next topic |
| Author |
Message |
ThE-UnNaMeD Voice
Joined: 25 Nov 2007 Posts: 9 Location: Local Disc (C:)
|
Posted: Sat Feb 23, 2008 6:47 am Post subject: How can I make a !chanset command? |
|
|
How can I make a !chanset command?..
(Not on DCC) |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
elisca Halfop

Joined: 27 Jan 2007 Posts: 65 Location: in the middle of nowhere
|
Posted: Sun Feb 24, 2008 3:57 am Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Feb 24, 2008 7:54 am Post subject: |
|
|
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 |
|
 |
elisca Halfop

Joined: 27 Jan 2007 Posts: 65 Location: in the middle of nowhere
|
Posted: Sun Feb 24, 2008 8:38 am Post subject: |
|
|
perfect..
now i can manage allprot without log to partyline..
thanks sir_Fz
u r my fav coder  |
|
| Back to top |
|
 |
|