- on *:text:request*:?:{
- if (%request) {
- if ($2) && ($3) && ($4) {
- set -u15 %request 1
- set %request.nick $nick
- set %request.chan $2
- set %request.bot $3
- set %request.email $4
- if (@ isin $4) {
- if (%request.bot != hoi) {
- notice %request.nick Error, %request.bot is not a valid bot!
- notice %request.nick Try again using a valid #ChannelBots nick.
- close -m $nick
- halt
- }
- else {
- join %request.chan
- checkop
- }
- }
- else { notice %request.nick Wrong usage! | halt }
- }
- else { notice $nick Wrong usage! }
- }
- else { halt }
- }
- alias checkop {
- if (%request.nick isop %request.chan) {
- checkbot
- }
- else {
- notice $nick Error, you are not opped at the specified channel. Parting now.
- part %request.chan REQUEST FAILED!
- }
- }
- alias checkbot {
- if (Q ison %request.chan) || (L ison %request.chan) {
- approve
- }
- else {
- notice $nick You have not a Quakenet Service at the specified channels. Parting now.
- part %request.chan REQUEST FAILED!
- }
- }
- alias approve {
- writeini requests.ini nick %request.chan %request.nick
- writeini requests.ini chan %request.chan %request.chan
- writeini requests.ini bot %request.chan %request.nick
- writeini requests.ini email %request.chan %request.nick
- notice %request.nick Your request is ok.
- notice %request.nick The requested bot %request.bot will join in a moment. Note: A #ChannelBots admin will check the channel again to be sure it meets all the requirements.
- msg #biggie.dev Request: %request.nick requested %request.bot for %request.chan $+ . Email: %request.email (Please approve the channel)
- part %request.chan Request is OK!
- halt
- }
Undefined
By: lol | Date: Dec 9 2006 22:43 | Format: None | Expires: never | Size: 1.79 KB | Hits: 1433
Latest pastes
2 days ago
3 days ago
3 days ago
4 days ago
5 days ago