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.

have a problem .. .qup .up ect..

Old posts that have not been replied to for several years.
Locked
S
Swoony

have a problem .. .qup .up ect..

Post by Swoony »

when me type .qup or .topic get me this in pline : :o

Tcl error [pub_topic]: invalid command name "botisown"

Tcl error [pub_qup]: invalid command name "botisown"

what me can do on it ? :evil:
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

change "botisown" to "botison" in the TCL...

btw : without the script posted it's hard to help you...
S
Swoony

Re: have a problem .. .qup .up ect..

Post by Swoony »

Swoony wrote:when me type .qup or .topic get me this in pline : :o

Tcl error [pub_topic]: invalid command name "botisown"

Tcl error [pub_qup]: invalid command name "botisown"

what me can do on it ? :evil:

.....
here some code of my xtools1.2

## public cmd topic -- start
proc pub_topic {nick uhost hand channel rest} {
global X botnick
if {[matchattr $hand Q] == 0} {
puthelp "NOTICE $nick :$X This command requires you to authenticate yourself. Please /msg $botnick auth <password>"
return 0
}
if {$rest!=""} {
if {[botisop $channel] == 1 || [botisown $channel] == 1} {
putserv "TOPIC $channel :$rest"
putlog "$X <<$nick>> !$hand! topic $rest"
}
if {![botisown $channel] && ![botisop $channel]} {
puthelp "NOTICE $nick :$X I am not opped" }
}
if {$rest==""} {
puthelp "NOTICE $nick :$X Usage: topic <topic>"
}
}
## public cmd topic -- stop
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

as said, replace isown with ison

Code: Select all

if {[botisop $channel] == 1 || [botison $channel] == 1} { 
i dont get it...you can only pull a pub trigger if you are also on the chan, and the bot can only "notice" this trigger if he is on the chan too...

the proc continues if the bot has OP or is on the chan...you could remove the "ison" and just do it with "isop $channel"+
right now if the bot is on the channel but not opped it doesn't notrify the user

Code: Select all

## public cmd topic -- start 
proc pub_topic {nick uhost hand channel rest} { 
global X botnick 
  if {[matchattr $hand Q] == 0} { 
   puthelp "NOTICE $nick :$X This command requires you to authenticate yourself. Please /msg $botnick auth <password>" 
   return 0 
  } 
  if {$rest!=""} { 
    if {[botisop $channel]} { 
      putserv "TOPIC $channel :$rest" 
      putlog "$X <<$nick>> !$hand! topic $rest" 
    } 
    if {![botisop $channel]} { 
      puthelp "NOTICE $nick :$X I am not opped" } 
    }
  }
  if {$rest==""} { 
    puthelp "NOTICE $nick :$X Usage: topic <topic>" 
  }
}
   
## public cmd topic -- stop
should work now
Locked