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.

!start !stop

Old posts that have not been replied to for several years.
Locked
User avatar
entrapmen
Voice
Posts: 27
Joined: Tue Jul 08, 2003 9:08 am
Location: TR

!start !stop

Post by entrapmen »

Is there any way to load a tcl (or proc line) simple to write !start on channel? andthen !stop to unload the tcl dat we loaded b4? Some channel owners want to start badword.tcl when they want and wanna stop when they want. Blah they want much :evil: :evil: :evil:

waitin for your help guys! :( :( :(
<@ll the world is about smiles and cries>
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

A more simple way is to add the !start and the !stop directly in the badword.tcl file, rather than load/unload it.
Once the game is over, the king and the pawn go back in the same box.
User avatar
entrapmen
Voice
Posts: 27
Joined: Tue Jul 08, 2003 9:08 am
Location: TR

Post by entrapmen »

caesar wrote:A more simple way is to add the !start and the !stop directly in the badword.tcl file, rather than load/unload it.
errr how :o) dats the point :) :) :) how could i do dat?
<@ll the world is about smiles and cries>
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Add this in the badword.tcl file, at the end of it:

Code: Select all

set badstatus 1

bind pub m !start bad:start
bind pub m !stop bad:stop

proc bad:start {nick uhost hand chan text} {
  if {$::badstatus == "1"} {
    putserv "PRIVMSG $chan :Badwords is already started."
    return
  }
  set badstatus 1
  putserv "PRIVMSG $chan :Badwords is now started."
}

proc bad:stop {nick uhost hand chan text} {
  if {$::badstatus == "0"} {
    putserv "PRIVMSG $chan :Badwords is already stoped."
    return
  }
  set badstatus 0
  putserv "PRIVMSG $chan :Badwords is now stoped."
}
and:

Code: Select all

if {$::badwords != "1"} { return }
inside the *badword* proc..
Once the game is over, the king and the pawn go back in the same box.
Locked