Fakenickahl Posted December 19, 2007 Share Posted December 19, 2007 There's a list in my source. Between some functions.CODECommon recieves:Nick = User who the message is fromName = Settable by user, set in the USER commandhost = ISP host~~~~PRIVMSG~~~~You recieve this when someone has sent a message in a channel, gives you there Nick, host, the channel it was said in and the message.SYNTAX::Nick!Name@host PRIVMSG #Channel :MessageEXAMPLE::Chip!Chip@OMN-8243F63D.dsl.bell.ca PRIVMSG #Chip :Hey guy'sWould be a message from Chip to say 'Hey guy's' in the channel #Chip:Chip!Chip@OMN-8243F63D.dsl.bell.ca PRIVMSG Bob :Hey Bob!Would be a Personal Message from Chip to Bob saying 'Hey Bob!'~~~~~~~~~~~~~MODE~~~~You recieve this when a mode is changed, a mode can give/take access change certainthings like who can join a channel etc..SYNTAX::Nick!Name@host MODE #Channel +/- MODE (USER)EXAMPLES::ChanServ!services@host MODE #Chip +o ChipThis says ChanServ (usually a service bot) has given Chip Operator access in the channel #Chip:ChanServ!services@host MODE #Chip +iThis makes #Chip invite only, so only OPs can invite users in the channel.:Chip!Chip@OMN-8243F63D.dsl.bell.ca MODE Chip +iThis will make Chip invisible to WHOIS. These are usermodes.~~~~~~~~~~~~~PING~~~~You recieves these at random to make sure your still online andnot disconnected. SYNTAX:PING :RandomlettersUsually a PING has random letters that you have to respond with.EXAMPLE:PING :29809dj0dYou would respond withPONG 29809dj0d~~~~~~~~~~~~~~~JOIN~~~~You recieve this when someone joins a channel.SYNTAX::Nick!Name@Host JOIN :#ChannelEXAMPLE::Chip!Chip@OMN-8243F63D.dsl.bell.ca JOIN :#ChipThis would be sent to everybody in #Chip to show that Chip has joined the channel #Chip~~~~~~~~~~~~~~~~~KICK~~~~You recieve this when someone gets kicked (Including yourself!)SYNTAX::Nick!Name@Host KICK #Channel User :ReasonEXAMPLE::Chip!Name@Host KICK #Chip Bob :Talk in privateWould kick Bob from #Chip and say 'Talk in private' in the reason~~~~~~~~~~~~~~~~~~QUIT~~~~You recieve this when someone disconnects from IRC.SYNTAX::Nick!Name@Host QUIT :ReasonEXAMPLE::Chip!Chip@OMN-8243F63D.dsl.bell.ca QUIT :I'm boredWould be sent to everyone in the channels Chip was in to say that he left IRC because He was bored.~~~~~~~~~~~~~~For the other packets, I use a ConsoleWrite to show my incoming packets. So it is mainly outgoing packets that I am concerned with.Ohh I guess I just scrolled over that part. Thank you Link to comment Share on other sites More sharing options...
jvanegmond Posted December 19, 2007 Author Share Posted December 19, 2007 (edited) Update; Changes: ; - Return value from /nick, if nick is taken, give an error and take a new nickname ; - Support messages from others with QUIT and PART ; - Send messages with /quit and /part commands, ask confirmation with both commands ; - Added support for channel messages (Message of the Day) ; - Changes name when it's already in use, adds an 1 behind it ; - /me interpreter and interprets /me commands from others ; - Trim all weird characters, only display ASCII characters between -x- and -x- Edited December 19, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Apzo Posted December 19, 2007 Share Posted December 19, 2007 Again a great script, Manadar ! I took the time to read the code, and I like the way you did it. Just a suggestion, by the way. In the main loop, I do prefer the use of 2 functions : - The first one would get the message and return it with flags (an array ?) - A second one would take this message and flags, and do whatever is necessary according to the associated flags. This way, it's easy add some new behaviors depending the text message itself, or its flags (QUIT, PART, NICK, KICK, etc etc). You did the hardest part, thanks again Apzo. All the pop3 functions.Rsync your files on your USB key (or anywhere else) Link to comment Share on other sites More sharing options...
MaudKip Posted December 19, 2007 Share Posted December 19, 2007 (edited) It took me awhile to realize that the input is in the console. But It works amazingly. =] Fun to mess around with while monitoring from an alternate IRC client. Also: The source link does not work. EDIT: Never mind, it was just slow. Edited December 19, 2007 by MaudKip Link to comment Share on other sites More sharing options...
jvanegmond Posted December 19, 2007 Author Share Posted December 19, 2007 Again a great script, Manadar !I took the time to read the code, and I like the way you did it.Just a suggestion, by the way.In the main loop, I do prefer the use of 2 functions :- The first one would get the message and return it with flags (an array ?)- A second one would take this message and flags, and do whatever is necessary according to the associated flags.This way, it's easy add some new behaviors depending the text message itself, or its flags (QUIT, PART, NICK, KICK, etc etc).You did the hardest part, thanks again Apzo.I agree with you on the functions. I should have built them, but I just copied whatever Chip had done before and modified it and expanded it..It's still easy to add new behaviors now, there's a part where all the If Then EndIf statements are lined up, where you can easily add new things. github.com/jvanegmond Link to comment Share on other sites More sharing options...
BananaFredSoft Posted December 19, 2007 Share Posted December 19, 2007 Still doesn't work. I downloaded the new update. -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat Link to comment Share on other sites More sharing options...
Nahuel Posted December 19, 2007 Share Posted December 19, 2007 It works perfectly for me... perhaps it's the TCP functions. I've had lots of trouble using them before too. Maybe you should do some port forwarding on your router? Link to comment Share on other sites More sharing options...
jvanegmond Posted December 19, 2007 Author Share Posted December 19, 2007 (edited) I have just fixed a bug involving interpretation for /me and your nick being changed...Edit: Nahual, I just went offline because I have dinner. I hope you read this. Edited December 19, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Nahuel Posted December 19, 2007 Share Posted December 19, 2007 Edit: Nahual, I just went offline because I have dinner. I hope you read this.I'm sure Nahual read this already Link to comment Share on other sites More sharing options...
Gif Posted December 19, 2007 Share Posted December 19, 2007 (edited) I see a lot of potentials in this but i think it needs a lot of CORE improvments , to become really competitive. Now you can work on it on holidays.Take a look at that IRC client for some ideas. One suggestion-you could add Smilies simply by something like:Local $str_rep = StringReplace(GuiCtrlRead($InputEdit), ':)', '<img src="http://www.autoitscript.com/forum/style_emoticons/autoit/smile.gif"></img>') Edited December 19, 2007 by Gif Link to comment Share on other sites More sharing options...
McGod Posted December 19, 2007 Share Posted December 19, 2007 Good to see my IRC UDF put to good use:D [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
WhOOt Posted December 19, 2007 Share Posted December 19, 2007 Something I'd love to see: Sound on name mentioned and highlight of text with your name in it And of cause, personal chat Link to comment Share on other sites More sharing options...
jvanegmond Posted December 19, 2007 Author Share Posted December 19, 2007 (edited) Good to see my IRC UDF put to good use:DThank you, Chip. I had to make some modifications to the UDF and also had to parse incoming commands by myself, but other then that, it has been a great help to me! Edited December 19, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
jvanegmond Posted December 19, 2007 Author Share Posted December 19, 2007 Something I'd love to see: Sound on name mentioned and highlight of text with your name in it And of cause, personal chat Already on it. Private messages are blocked on irc.freenode.net, it's a way of stopping the spam bots.. I have personal chat on my idea list, though. github.com/jvanegmond Link to comment Share on other sites More sharing options...
WhOOt Posted December 19, 2007 Share Posted December 19, 2007 tooltip with messages containing own name / newest message Link to comment Share on other sites More sharing options...
jvanegmond Posted December 20, 2007 Author Share Posted December 20, 2007 tooltip with messages containing own name / newest messageThank you. Good idea.We're having a blast on the IRC channel.. It's great for when bored. github.com/jvanegmond Link to comment Share on other sites More sharing options...
BananaFredSoft Posted December 20, 2007 Share Posted December 20, 2007 I think it's that my router doesn't forward the port. How do I fix this? -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat Link to comment Share on other sites More sharing options...
jvanegmond Posted December 20, 2007 Author Share Posted December 20, 2007 I think it's that my router doesn't forward the port. How do I fix this?You don't have to forward any ports to create an outgoing connection. The router does not interfere with the connection.You likely have a firewall blocking the application. Make sure that you have accepted AutoIt in your firewall, or in your Windows XP firewall..Try to run anything AutoIt that uses the TCP functions, and they will probably not work either.. If they do, tell me. github.com/jvanegmond Link to comment Share on other sites More sharing options...
jvanegmond Posted December 20, 2007 Author Share Posted December 20, 2007 There currently seems to be a bug with names of people in the channel.. It totally misinterprets that, and I am fixing it.. So sorry to those that are trying it out at the moment. github.com/jvanegmond Link to comment Share on other sites More sharing options...
jvanegmond Posted December 20, 2007 Author Share Posted December 20, 2007 Added 2.1 - Option GUI where you can set server, nickname, channel. In the compiled version you can also let it automatically run at startup. - Options are stored in an INI-file. - Hotkeys have been removed. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now