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.

Enforce invite

Old posts that have not been replied to for several years.
Locked
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Enforce invite

Post by metroid »

I havent managed to find one and i have no clue how to build it myself but if anyone has one.

I'd like it to enforce invite so if anyone removes it, it will readd +i, even if its an owner or master. And if someone kick/bans the bot, he will get kickbanned when the bot returns.

Anyone have something like this? :>
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Channel mlock can be set via the bot configuration file ie. chanmode "+nti-lkm" and via DCC ie. .chanset chanmode +/- modes

This can also be set globally via "set global-chanmode"

Doing the above ignores user access to the bot, including owner/master.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Im talking about a script here, to toggle the enforcing on and off :>
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

#default the enforcing to off
set enforceinvite 0

#trigger to set the enforcing to "on" or "off" 
bind dcc n enfinvite enforce:invite:dcc
proc enforce:invite:dcc {hand idx arg} {
	global enforceinvite
	if {[string equal -nocase [lindex [split $arg] 0] "on"]} { set enforceinvite 1
	} elseif {[string equal -nocase [lindex [split $arg] 0] "off"]} { set enforceinvite 0
	}
}

bind mode - "* -i" enforce:invite
proc enforce:invite {args} {
	if $::enforceinvite { pushmode [lindex $args 3] +i }
}
NOTE: untested and very basic :D
...if you want it to do more, do it yourself ;)
Elen sila lúmenn' omentielvo
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Thanks :) Ill go try it and make adjustments if needed
Locked