Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Somewhat simple auto connect script.
- ; By: Pain
- ; Kudos: ex0a, KnickLighter
- ; - irc.6667.eu - #main -
- on *:CONNECT:{
- if ($network == NETWORKNAME) {
- ; Regex checks for "z" umode and allows Oper.
- if (/.*sets\smode\:\s\+[a-y]*z[a-y]*$/i) {
- oper $me YOUR.UBER.SUPER.SECRET.OPER.PASSWORD
- }
- ; Regex checks for "O" umode and allows Identification
- if (/.*sets\smode\:\s\+[a-zA-NP-Z]*O[a-zA-NP-Z]*$/) {
- .msg NickServ IDENTIFY YOUR.SUPER.SECRET.PASSWORD
- }
- ; Regex checks for "r" umode and allows channel join.
- if (/.*sets\smode\:\s\+[a-qs-z]*r[a-qs-z]*$/i) {
- join #CHANNEL,#CHANNEL1,#CHANNEL2
- }
- } ;Halt goes here, but not nescessary
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement