Skip to content

Commit e2a1315

Browse files
authored
Create AutoJoin.mrc
Initial release of the AutoJoin script for mIRC. Based on my AutoJoin module for ZNC. -=-=-=-=-=-=-=-=-=-= Script Readme =-=-=-=-=-=-=-=-=-=- 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 its 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.
1 parent 93a0545 commit e2a1315

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

AutoJoin.mrc

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

0 commit comments

Comments
 (0)