this should work on FXServer and some others
Edit "YOURPASSWORD" and "YOURHOSTNAME" to match yours
<OnOpMessage type="script">
<in>/login YOURPASSWORD</in>
<out>/message %RAWNAME% #c2#PLEASE STANDBY WHILE YOUR DETAILS ARE ANALYSED FOR LOGIN PERMISSION.....</out>
<out delay="2000" condition="!?" lvalue="%HOSTNAME%" rvalue="YOURHOSTNAME">/message %RAWNAME% #c8#Permission Denied!</out>
<out delay="2000" condition="!?" lvalue="%HOSTNAME%" rvalue="YOURHOSTNAME">/kickban %NAME%</out>
<out delay="2000" condition="?" lvalue="%HOSTNAME%" rvalue="YOURHOSTNAME">/message %RAWNAME% #c4#Permission Granted! Welcome Back #c1#%NAME%</out>
<out delay="2000" condition="?" lvalue="%HOSTNAME%" rvalue="YOURHOSTNAME">/forcelogin %RAWNAME% YOURPASSWORD</out>
</OnOpMessage>
If it's WCS your using you'll need to create a Custom Command:
CustomCommand=/LOGIN=YOURBOTSPASSWORD <-- change to your bots pass
Edit "YOURPASSWORD" and "YOURHOSTNAME" to match yours
<command type="script">
<in>/login YOURPASSWORD</in>
<out>/message %RAWNAME% #c2#PLEASE STANDBY WHILE YOUR DETAILS ARE ANALYSED FOR LOGIN PERMISSION.....</out>
<out delay="2000" condition="!?" lvalue="%HOSTNAME%" rvalue="YOURHOSTNAME">/message %RAWNAME% #c8#Permission Denied!</out>
<out delay="2000" condition="!?" lvalue="%HOSTNAME%" rvalue="YOURHOSTNAME">/kickban %NAME%</out>
<out delay="2000" condition="?" lvalue="%HOSTNAME%" rvalue="YOURHOSTNAME">/message %RAWNAME% #c4#Permission Granted! Welcome Back #c1#%NAME%</out>
<out delay="2000" condition="?" lvalue="%HOSTNAME%" rvalue="YOURHOSTNAME">/forcelogin %RAWNAME% YOURPASSWORD</out>
</command>
NOTE: if you have the bot override the /login command in WCS ,you'll need to replicate the above script for each admin you have (making the neccessary changes to match their hostname and password)
You could also change all instances of %HOSTNAME% to %IP% if you choose