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.

Invites on +i channels

Old posts that have not been replied to for several years.
Locked
D
DB7

Post by DB7 »

I have a channel that is +i, and users that i want to be able to access it but not have the +o flag to do it. is there a way to set bots to allow +v users to invite themselves?...or create a new flag to allow them to?
g
gpdza

Post by gpdza »

This is very basic, not tested, but should work. It allows users with +I flag (note the capital 'I') to do /msg botnick inviteme. Just change #thechannel to whatever channel you have that's +i

Code: Select all

bind msg -|I inviteme msg:invite

proc msg:invite {nick host hand text} {
 if {![onchan $nick #thechannel]} {
  putserv "INVITE $nick #thechannel"
 } else {
  puthelp "NOTICE $nick :You're already on the channel!"
 }
}
D
DB7

Post by DB7 »

Thanks. I ended up by *ahem* borrowing the code from ERCmini's non op invite...works fine once i removed the out of date crap that would have totally mullered netbots.tcl (thanks to EverRaver for his code)
Locked