Release your script here.
State:
- Author
- What it does
- Perhaps a little guide.
- Also, if the snippet is of any use to the community, it has a chance of getting posted on the main page, so don't hesitate to submit/ask!
by Cristian » Sat Mar 29, 2008 8:48 pm
- Code: Select all
# Trigger is set to ! - It requires that you are global op og channel op (o|o), to set information.
# Changeable strings: Members Sponsors Servers News Homepage Commands
# For Example:
# ! set members member1 member2
# ! members returns: member1 member2
# You can change ! to !menu.
##############################
setudef str members
setudef str sponsors
setudef str servers
setudef str news
setudef str homepage
setudef str commands
namespace eval menu {
namespace eval variable {
variable cmdtrigger "\!"
variable commands "Members Sponsors Servers News Homepage Commands"
}
bind PUB -|- $::menu::variable::cmdtrigger [namespace current]::public
proc public {nick uhost hand chan arg} {
if {[string length [channel get $chan commands]] < 1} { channel set $chan commands $::menu::variable::commands }
set cmd "[lindex [split $arg] 0]"
if {![info exists cmd]} { return }
switch -- $cmd {
"set" {
if {[matchattr $hand o|o $chan]} {
set cmd "[lindex [split $arg] 1]"
set arg "[lrange [split $arg] 2 end]"
if {[catch {channel get $chan $cmd} err] == 0} {
channel set $chan $cmd $arg
putserv "NOTICE $nick :Done message for $cmd saved. [join [channel get $chan $cmd]]"
}
}
return
}
}
if {[catch {channel get $chan $cmd} err] == 0} { putserv "PRIVMSG $chan :[join [channel get $chan $cmd]]"; return }
}
}
putlog "\00304[string range [info script] 0 end]\00304 \002loaded\003\002. By \002Sumsar\002 Website: \002http://sp00fed.org\002"
-
Cristian
- proof of advance

-
- Posts: 282
- Joined: Sun Nov 04, 2007 3:02 pm
- Location: Denmark
- Authnick: Sumsar
-
by Futz0r » Wed Apr 02, 2008 8:04 pm
[21:59] Tcl error [::menu::public]: Unknown channel setting.
on "! set news text herer"
-
Futz0r
-
by Cristian » Thu Apr 03, 2008 4:51 pm
I will take a look at that, when I got the time, thanks for the error info.
-
Cristian
- proof of advance

-
- Posts: 282
- Joined: Sun Nov 04, 2007 3:02 pm
- Location: Denmark
- Authnick: Sumsar
-
by Cristian » Sun Apr 06, 2008 2:58 pm
Updated:
-
Cristian
- proof of advance

-
- Posts: 282
- Joined: Sun Nov 04, 2007 3:02 pm
- Location: Denmark
- Authnick: Sumsar
-
Return to TCL Scripting Release
Who is online
Users browsing this forum: No registered users and 0 guests