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.

Channel Admin Help

Old posts that have not been replied to for several years.
Locked
K
Kraka
Voice
Posts: 19
Joined: Thu Apr 21, 2005 9:25 pm

Channel Admin Help

Post by Kraka »

I am trying to make the Complete Channel Administration Script work to when the op types !addbot it will make the bot flags only appear as channel flags from where the command was typed instead of the flags being global. So far it is making the flags global and the channel flags where the command was typed as "-". I tried finding the author of it but couldn't, If anyone can help that would be great. This is the part of the script that I am trying to get it to work with:

#------------------------------------------------------------------------------------------------------------
# The following processes the !addbot trigger command
#------------------------------------------------------------------------------------------------------------
proc inchanaddbot {nick uhost hand chan rest} {
global noadvtriggers
set chan [string tolower $chan]
set knick [lindex $rest 0]
if {![onchan $knick $chan]} {
puthelp "NOTICE $nick :I don't see $knick in this channel"
return 0
} else {
if [validuser [nick2hand $knick]] {
puthelp "NOTICE $nick :$knick is already on the bots, adding +vfb"
set mask [getmask $knick $chan]
setuser [nick2hand $knick] HOSTS $mask
chattr [nick2hand $knick] +vfb $chan
setuser [nick2hand $knick] PASS "SDgtgfdfsdde23d34d3"
putlog "\0035 $nick is adding +vfb flags to $knick"
return 0
} else {
set mask [getmask $knick $chan]
adduser $knick $mask
chattr $knick -hopmnx
chattr $knick +vfb $chan
setuser [nick2hand $knick] PASS "SDgtgfdfsdde23d34d3"
puthelp "NOTICE $nick :Adding $knick to the bots with +vfb."
putlog "\0035 $nick is adding $knick with +vfb flags"
return 0
}
}
}
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

use:

Code: Select all

chattr $knick |+vf $chan
(you can't set +b channel flag; why it's being set in the first place is beyond me, that's nonsense)

and next time use

Code: Select all

 tags when posting code
K
Kraka
Voice
Posts: 19
Joined: Thu Apr 21, 2005 9:25 pm

Post by Kraka »

thanks for the help, worked perfect. And i will remeber to use the code tags next time. thanks for the help again.
Locked