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.
Old posts that have not been replied to for several years.
S
SL|MK
Post
by SL|MK » Sat Aug 17, 2002 10:03 pm
Is it possible to set up a eggy so that when you type /msg botnick invite password it will invite you into all channels that it is in that are set +i without haveing to enter the channel name?
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sun Aug 18, 2002 6:52 am
Here you go.
use "/msg <bot> ainvite <password>"
It will ivite you too all the channels that it is in, has OP status, and you have +o access.
Code: Select all
bind msg o|o ainvite msg:ainvite
proc msg:ainvite {nick uh hand arg} {
if {![passwdok $hand [lindex [split $arg] 0]} {
putserv "NOTICE $nick :Incorrect password."
return
}
foreach a [channels] {
if {([matchattr $hand o|o $a]) && ([botisop $a])} {
puthelp "INVITE $nick $a"
}
}
}