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.

Hopefully simple question.

Old posts that have not been replied to for several years.
Locked
S
SL|MK

Hopefully simple question.

Post by SL|MK »

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?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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"
    }
  }
}
Locked