Top

Auto-Join

+ 0 likes
Please Register to submit score.
Average Score  6.3
Scores Submitted  4
Date Added  Jan 17, 2007
Last Updated  Jan 29, 2007
Tags  auto  join 

Introduction

A quick little code that will auto-join channels based on the network that you have connected to. Handy for those people that want to join a lot of channels when they connect, and keep seeing "Target change to fast"

Channels are added/removed via menu system and stored in a hash table based on the network name.

Note: I understand that some networks don't return a network name, but as I've been unable to find one, I don't know how this will work with networks like that.


Grab the Code

Comments

  (18)  RSS
Aaron
Comments: 104
 
mIRC Snippet:  Auto-Join
Posted on Jan 17, 2007 8:36 pm
nice :)
Aaron
Comments: 104
 
mIRC Snippet:  Auto-Join
Posted on Jan 18, 2007 2:14 am
but just saying theres an easier way to do this :P

on *:connect:{
join #channel
join #channel

but yours is more..awsome :P
A-1-T-E-A-M
Comments: 32
 
mIRC Snippet:  Auto-Join
Posted on Jan 18, 2007 3:20 am
Nice snippet I have that on my script :)
RoninWarrior
Comments: 252
 
mIRC Snippet:  Auto-Join
Posted on Jan 18, 2007 8:13 pm
RussleB I know this makes me sound a bit stupid but i suck at hash tabels.I loaded it up and put it into a new remotes file right clicked in the chanel popups and hit add channel $input came up with the channel name in it nicely,I dont use a key so i hit ok.But when i go to find a hash file in the folder were the file i loaded is saved there is nothing?Well there is nothing at all i closed out of mIRC and reopened it up and re connected and there is no auto join at all.I guess basically is what am i doing wroung LOL.
RoninWarrior
Comments: 252
 
mIRC Snippet:  Auto-Join
Posted on Jan 18, 2007 8:14 pm
I read your notes I am useing Dalnet if that means anything.
xDaeMoN
Comments: 696
 
mIRC Snippet:  Auto-Join
Posted on Jan 18, 2007 9:24 pm
Currently, it doesn\'t save the data to a file upon exit or disconnect. It also lacks the On start event where it would create the hash table & load the data from the file.
xDaeMoN
Comments: 696
 
mIRC Snippet:  Auto-Join
Posted on Jan 18, 2007 9:26 pm
I take back the lacking of the ON start event. Didn\'t notice that it creates the table & loads the data upon connect.
DarthReven
Comments: 468
 
mIRC Snippet:  Auto-Join
Posted on Jan 19, 2007 2:58 pm
You can set something like this up on mIRC\'s Perform with timers if you wish
RoninWarrior
Comments: 252
 
mIRC Snippet:  Auto-Join
Posted on Jan 19, 2007 4:36 pm
DR that is what i use currently know .
RoninWarrior
Comments: 252
 
mIRC Snippet:  Auto-Join
Posted on Jan 19, 2007 4:36 pm
But i still cant this to work though
RusselB
Comments: 98
 
mIRC Snippet:  Auto-Join
Posted on Jan 19, 2007 7:25 pm
Thanks for the feedback. I\'m not sure why the sections to save the hash tables didn\'t show in the code. I know they were there, so, I have added them to the posted code manually.

Aaron: I realize that using multiple /join commands will work, however, using a lot of them in a row (without a timer) will cause a Target Change Too Fast error.

RoninWarrior: The script was tested on 5 different networks. Those networks are: DalNet, Undernet, BDSM.net, Bondage.com and Maximum-IRC
It works perfectly on all of those networks. (with the slight modifications that I mentioned earlier).
Aaron
Comments: 104
 
mIRC Snippet:  Auto-Join
Posted on Jan 20, 2007 6:16 am
yeah i see what you mean with a target change :P

hooked up like 50 channels to it..wasnt pretty
RusselB
Comments: 98
 
mIRC Snippet:  Auto-Join
Posted on Jan 20, 2007 10:40 am
If anyone knows a way of determining the maximum number of channels that one can join using a single /join command, please let me know so that I can incorporate the information into my code (with appropriate credits being given, of course).
LIQUID_NiTrO
Comments: 113
 
mIRC Snippet:  Auto-Join
Posted on Jan 22, 2007 7:11 pm
I don\'t think it\'s possible for $network not to be filled...it is standard protocol to send a network name to a connecting client in raw 005, and I can\'t think of any reason for an IRCd not to follow this practice.

The maximum number of channels a person is allowed to simultaneously be in are also included in raw 005. At least, that information is sent on UnrealIRCd, and while I haven\'t tested it on others I would be that they would send it as well.
After connecting to DALnet, for instance, you receive a message like this, displayed before the MOTD:

<- :aeon.ix.us.dal.net 005 YOURNICK NETWORK=DALnet SAFELIST MAXBANS=200 MAXCHANNELS=20 CHANNELLEN=32 KICKLEN=307 NICKLEN=30 TOPICLEN=307 MODES=6 CHANTYPES=# CHANLIMIT=#:20 PREFIX=(ov)@+ STATUSMSG=@+ :are available on this server

And it says in this message that the maximum number of channels you are allowed to be in at one time is 20 (MAXCHANNELS=20)
xDaeMoN
Comments: 696
 
mIRC Snippet:  Auto-Join
Posted on Jan 23, 2007 12:45 am
You can also trigger that by using \'/version\'. Not sure if all servers uses that same command but been using that on my xSeen script & tested it on quite a few networks/servers.
RoninWarrior
Comments: 252
 
mIRC Snippet:  Auto-Join
Posted on Jan 23, 2007 8:12 pm
ok this works great for me know RussleB.Just one question is there a way for you make it to were when you click on the popup to see the channels you have stored in the hash file per network?
RusselB
Comments: 98
 
mIRC Snippet:  Auto-Join
Posted on Jan 29, 2007 7:51 pm
RoninWarrior: While I don\'t have that option currently, I\'m more than willing to incorporate it once my internet problems have been resolved (hopefully within 48 hours of this post). Keep your eyes peeled for a script update withing 72 - 96 hours.
RusselB
Comments: 98
 
mIRC Snippet:  Auto-Join
Posted on Jan 29, 2007 8:11 pm
Got the update done faster than I thought. Hope the changes meet your request.

Please Register or Login to start posting comments.
Bottom