Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
- If Channel=def then
- If Message="+Shoosh" and Shoosh="Off" and Host="*!*@X-Ray_Dog.user.gamesurge" or Host="*!*@lb31337157.user.gamesurge" or Host="*!*@FOX-Thrawn.linux.gamesurge" then
- SendCommand "/msg " & def & " Only X-Ray_Dog, Thrawn, Champion or Channel Operators may talk now. "
- Shoosh="On"
- Exit Sub
- ElseIf Message="+Shoosh" and Shoosh="On" and Host="*!*@X-Ray_Dog.user.gamesurge" or Host="*!*@lb31337157.user.gamesurge" or Host="*!*@FOX-Thrawn.linux.gamesurge" then
- SendCommand "/msg " & def & " Shoosh mode now off. Anyone may speak."
- Shoosh="Off"
- Exit Sub
- ElseIf Message="+Shoosh" and not Host="*!*@X-Ray_Dog.user.gamesurge" or not Host="*!*@lb31337157.user.gamesurge" or not Host="*!*@FOX-Thrawn.linux.gamesurge" and Shoosh="On" or Shoosh="Off" then
- SendCommand "/msg " & def & " Only Champion, X-Ray_Dog or Thrawn may activate Shoosh Mode. "
- Exit Sub
- End If
- If Shoosh="On" and not Host="*!*@X-Ray_Dog.user.gamesurge" or not Host="*!*@lb31337157.user.gamesurge" or not Host="*!*@FOX-Thrawn.linux.gamesurge" or not IsOp(Nickname,def,ServerNumber) then
- SendCommand "/mode " & def & " -v " & Nickname & ""
- Exit Sub
- ElseIf Shoosh="Off" then
- Exit Sub
- End If
- End If
- End Sub
Add Comment
Please, Sign In to add comment