- On @*:JOIN:#{Fredieking}: {
- if ($read(invite.smembers.txt, s, $address($nick,2)) != $null) {
- /invite $nick #Fredieking.hidden
- /notice $nick You have been invited to #Fredieking.hidden- write
- /join #Fredieking.hidden to join the channel!
- }
- else {
- /mode $chan +v $nick }
- }
- ;the above section checks the access list named members.txt to
- ;see if the person entering the public channel has a known hostname
- ;and should be autoinvited to the members channel
- ;members.txt is created when the first member is added and resides
- ;in the main irc client folder
- ;Does not always work because of possible delay between joining a
- ;irc server and identifying of the persons nick with nickserv
- on @*:TEXT:!Member *:#Fredieking: {
- write -s $+ $address($$2,2) invite.smembers.txt $address($$2,2) $$2
- /msg $chan $$2 has been added to the list of Friends!
- }
- ;This peice of code monitors #schan for the !member trigger
- ;Proper useage is !member nick of person being added to members
- ;Persons nick is written to members.txt along with their hostname
- ;Person can change their nick all they want and as long as hostname ;matches the entry in members.txt they will be allowed access to
- ;the members channel upon usage of the !invite trigger
- ;Multiple channels can be specified for the bot to listen on but bot
- ;must also be in those channels to see the trigger
- ;500 refers to authorised bot admins that are specified in the "users"
- ;section of the mirc scripts editor as
- ;500:*!*@James.users.barafranca.com
- ;Adjust for hostmask display on the irc server you are using
- on @*:TEXT:!Remove *:#Fredieking:{
- write -ds $+ $address($$2,2) invite.smembers.txt
- /msg $chan $$2 has been removed from the list of Friends!
- }
- ;Does the reverse of the !member command and removes a persons
- ;entry from the access list.
- on *:TEXT:!Invite*:#Fredieking: {
- if ($read(invite.smembers.txt, s, $address($nick,2)) != $null) {
- /invite $nick #Fredieking.hidden
- }
- else { msg $chan $nick you're not on the members list! }
- }
- ;This code listens for the !invite trigger on the channels you specify
- ;When the member desires to enter the restricted channel they
- ;simply type !invite in the specified public channel or channels
- ;This part of the script compares the users hostmask to that
- ;contained in members.txt and if user is on the list and invite is
- ;issued by the bot to the member.
- ;If the entry is not found then the bot publicly displays a refusal
- ;message }
Undefined
By: script | Date: Nov 6 2009 20:50 | Format: None | Expires: never | Size: 2.48 KB | Hits: 920
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago