vHost Changer for UnrealIRCd — File Browser
vHostChangerforUnrealIRCdv1.11 / vHostChangerforUnrealIRCdv1.11 / vhost.mrc
vhost.mrc — 3.04 KB — Download this file
; vHost Changer v1.11 for UnrealIRCd by Gizmo967
;
;
; IRCop tool to change vhost on trigger for UnrealIRCd
; syntax: !vHost <Vhost you want>
; comments: admin@mgs3.org
; credits: [M4rk0] (www.mostarac.net)
on *:load: {
echo -a 9>>> 12vHost trigger successfully loaded...
echo -a 9>>> 12Author: Gizmo967
echo -a 9>>> 12Copyright © 2004 Gizmo967
echo -a 9>>> 12IRCop tool to change vhost on trigger for UnrealIRCd
echo -a 9>>> 12Please reconnect now!
set %vhostchan $?="!vHost for which #channel?"
}
on *:unload: {
echo -a 9>>> 12Thanks for using vHost Changer by Gizmo967!
unset %vhost
unset %vhostchan
unset %ignore
}
$vhostchan = %vhostchan
raw 004:*:{
if (Unreal* iswm $3) { /.enable #vhost | set %vhost true }
else { /.disable #vhost | /echo -s 4vHost is now disabled, You are not on UnrealIRCD server! | set %vhost false }
}
;############# !vHost trigger ##############
Menu menubar {
$iif(o isin $usermode,!vHost)
.$iif(%vhost == false, $style(2)) ON: { /.enable #vhost | echo -a 10vHost trigger is now: 4(12ON4) }
.OFF: /.disable #vhost | echo -a 10vHost trigger is now: 4(12OFF4)
.Set chan: /set %vhostchan $?="!vHost for which #channel?"
}
#vhost on
on *:TEXT:!vhost:%vhostchan: { msg # ( $nick ) To change your vhost type: !vhost <The Vhost You Want> } }
on *:TEXT:!vhost *:%vhostchan: {
if (%ignore. [ $+ [ $nick ] ]) { msg # ( $nick ) You are still in my ignore list. please wait until the 10 minutes ends | halt }
if (encrypted- isin $2) { msg # ( $nick ) Sorry that vhost seems to be a hostname of some body which can't be used as your vhost. | halt }
if !$regex($$2,/^(?:[-a-zA-Z0-9.]*)$/) { msg # ( $nick ) Sorry, Your vhost may only contain ( a-z, A-Z, 0-9, '-' & '.' ) | halt }
if ($chr(32) isin $2-) { msg # ( $nick ) Please type the vhost you want without space(s). | halt }
if ($chr(46) !isin $2) { msg # ( $nick ) Error Detected: Your vhost must atleast have one "." | halt }
if ($len($2) < 5) { msg # ( $nick ) Sorry that vhost is too short, please choose a longer vhost. | halt }
if ($len($2) > 60) { msg # ( $nick ) Sorry that vhost is too long, please choose a shorter vhost. | halt }
var %ban (bitch|shit|fuck|asshole|cunt|slut|cock|owner|admin|ircop|fucked|operator|ip|Fuck)
if ($regex($2-,%ban)) { msg # ( $nick ) Sorry that vhost contains a word that you are not allowed to have in your vhost, please choose another vhost | halt }
if (!$regex($2-,%ban)) {
var %x 1,%y,%z | while ($gettok($2,%x,46)) { %y = $ifmatch | if (%y isnum) { inc %z } | inc %x }
if (%z = 4) { msg # ( $nick ) Sorry that vhost seems to be an ip address which can't be used as your vhost. | halt }
if (%z != 4) {
if (!%ignore. [ $+ [ $nick ] ]) {
if ($chr(46) isin $2) { /chghost $nick $2 | /msg # ( $nick ) Your vhost have been successfully changed to ( $2 ) - You are now ignored for 10 minutes. | set -u600 %ignore. [ $+ [ $nick ] ] on | halt }
}
}
}
}
#vhost end