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.

chanset stuff

Old posts that have not been replied to for several years.
Locked
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

chanset stuff

Post by metroid »

How do i make a channel set +<something> through a script, for example

what in dcc is .chanset #v1per +topiclock would be in pub ?

Code: Select all

bind pub n "\$topiclock" topic:lock:pub

Code: Select all

set topiclock:pub "unknown"

proc topic:lock:pub {nick uhost hand chan text} {
global topiclock:pub
if {$text == ""} {
putquick "NOTICE $nick :Syntax : \$topiclock on/off"
putquick "NOTICE $nick :Topiclock is now: $topiclock:pub"
} elseif {$text == "on"} {
chanset $chan +topiclock
putquick "NOTICE $nick :Topiclock is now on"
set topiclock:pub "on"
} elseif {$text == "off"} {
chanset $chan +topiclock
putquick "NOTICE $nick :Topiclock is now off"
set topiclock:pub "off"
}
}
Now i need to know how this toggle script will set +topiclock on the chanset but i have no clue how :(
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Have a look at setudef
setudef <flag/int/str> <name>
Description: initializes a user defined channel flag, string or integer
setting. You can use it like any other flag/setting.
Locked