-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAutoJoin.mrc
More file actions
37 lines (34 loc) · 1.18 KB
/
AutoJoin.mrc
File metadata and controls
37 lines (34 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
AutoJoin Script for Undernet IRC Network
By QueenElsa Version: 1.9
*/
;USAGE: Load this script into a blank new remotes file on your client.
;Script uses X's autoinvites for it's primary function. There are no
;options to configure within this script. Everything is done through X.
;It may be expanded to include other bots and services, as this script
;is not complicated.
;STAFF NOTE: If you're an Undernet Staff Member, a special version of
;this script exists and may be available to you. Contact QueenElsa for
;more information.
on *:CONNECT:{
if (!$window(@InviteMgmt)) { window -ike @InviteMgmt }
}
on *:INVITE:*: {
if (!$network = UnderNet) { halt }
else {
if ($address($nick,2) == *!*@undernet.org) {
/join $chan
echo -ke @InviteMgmt 9,3Trusted A network service invited you to join $chan $+ . Invite auto-accepted.
halt
}
else {
echo -ke @InviteMgmt 4,5Unknown $nick invited you to join $chan $+ . Invited rejected.
halt
}
}
}
menu channel {
.X AutoInvite
.. ON: { /msg [email protected] modinfo $chan invite ON }
.. OFF: { /msg [email protected] modinfo $chan invite OFF }
}