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 (pub)

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

!chanset (pub)

Post by Nor7on »

Hi

someone tcl script for public command !chanset ?

Thanks.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Code: Select all

 proc chanset:pub {nick uhost hand chan text} {
  set chanset [lindex [split $text] 0]
  if {[regexp {^(\+|-)} "$chanset"]} {
   set result [catch {channel set $chan $chanset} error]
   if {$result == 1} {
    puthelp "NOTICE $nick :error trying to set modes \{ $chanset \} on $chan: $error"
    return 0
   } else {
    puthelp "NOTICE $nick :Successfully set modes \{ $chanset \} on $chan"
    return 1
   }
  } else {
   set option [join [lrange [split $text] 1 end]]
   set result [catch {channel set $chan $chanset $option} error]
    if {$result == 1} {
     puthelp "NOTICE $nick :error trying to set modes \{ $chanset $option \} on $chan: $error"
     return 0
    } else {
     puthelp "NOTICE $nick :Successfully set modes \{ $chanset $option \} on $chan"
     return 1
    }
  }
 }
Its basic, dont have the time to work on it as a script. But am sure you or someone else can "modify" it to suit your taste :)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

This has been requested before, use the search function. Here's an old topic.
Post Reply