While IRC Is Easy to Get Into and Many People Are Happy to Use It Without
Total Page:16
File Type:pdf, Size:1020Kb
< Day Day Up > • Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic • Top Ten Tricks and Tips for New IRC Users IRC Hacks By Paul Mutton Publisher: O'Reilly Pub Date: July 2004 ISBN: 0-596-00687-X Pages: 432 While IRC is easy to get into and many people are happy to use it without being aware of what's happening under the hood, there are those who hunger for more knowledge, and this book is for them. IRC Hacks is a collection of tips and tools that cover just about everything needed to become a true IRC master, featuring contributions from some of the most renowned IRC hackers, many of whom collaborated on IRC, grouping together to form the channel #irchacks on the freenode IRC network (irc.freenode.net). < Day Day Up > < Day Day Up > • Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic • Top Ten Tricks and Tips for New IRC Users IRC Hacks By Paul Mutton Publisher: O'Reilly Pub Date: July 2004 ISBN: 0-596-00687-X Pages: 432 Copyright Foreword Credits About the Author Contributors Acknowledgments Preface Why IRC Hacks? How to Use This Book How This Book Is Organized Conventions Used in this Book Using Code Examples How to Contact Us Got a Hack? Chapter 1. Connecting to IRC Introduction: Hacks #1-4 Hack 1. IRC from Windows Hack 2. IRC from Linux Hack 3. IRC from Mac OS X Hack 4. IRC with ChatZilla Chapter 2. Using IRC Introduction: Hacks #5-11 Hack 5. The IRC Model Hack 6. Common Terms, Abbreviations, and Phrases Hack 7. Common Acronyms and Initialisms Hack 8. Register with NickServ Hack 9. Register Your Channel with ChanServ Hack 10. The QuakeNet L Channel Bot Hack 11. Fix Channel Problems with CHANFIX Chapter 3. Users and Channels Introduction: Hacks #12-16 Hack 12. Find Relevant Channels and Servers Hack 13. Guess the Time Zone of a User Hack 14. Study Channel Statistics with pisg Hack 15. Find Users in Channels Hack 16. Filter Channel Lists Chapter 4. Enhancing IRC Clients Introduction: Hacks #17-30 Hack 17. Automatic Completion of Nicknames Hack 18. Add Timestamps to mIRC Messages Hack 19. Highlight Lines in mIRC Hack 20. Automate mIRC with Scripting Hack 21. Format Text Hack 22. Colorize Text Hack 23. Play Sounds Hack 24. Enhance irssi with Perl Hack 25. Connect to Multiple Servers Hack 26. Secure Your IRC Connection with SSL Hack 27. Tunnel Your IRC Connection with SSH Hack 28. Automate Voice Management Hack 29. Make IRC Talk Hack 30. Add Your IRC Nickname to Your Webcam Chapter 5. Writing IRC Bots Introduction: Hacks #31-39 Hack 31. IRC Over Telnet Hack 32. A Simple Perl IRC Client Hack 33. IRC with Perl and Net::IRC Hack 34. A Simple Java IRC Client Hack 35. IRC with Java and PircBot Hack 36. A Simple Python IRC Client Hack 37. IRC with Python and IRCLib Hack 38. Extend the Python IRCLib Hack 39. The Ethics of IRC Bots Chapter 6. Logging Bots Introduction: Hacks #40-43 Hack 40. Keep Tabs on People Hack 41. Log URLs People Mention Hack 42. Blog from IRC Hack 43. A Continuity Bot Chapter 7. Community Bots Introduction: Hacks #44-50 Hack 44. Infer Social Networks from IRC Hack 45. Run an Infobot Hack 46. Use PPF for Gaming Clans Hack 47. Write a Plug-in for PPF Hack 48. Getting Friendly with FOAFBot Hack 49. Interrogate Trust Networks with TrustBot Hack 50. Pass Notes to Other Users Chapter 8. Search and Query Bots Introduction: Hacks #51-57 Hack 51. Search the Web with Google Hack 52. Use the Dictionary Hack 53. Check the Weather Hack 54. Don't Get Lost in Translation Hack 55. Convert Currency Hack 56. Find Out When People Are on the Network Hack 57. Search for Books on Amazon Chapter 9. Fun Bots Introduction: Hacks #58-63 Hack 58. A DiceBot Hack 59. An Egg Timer Hack 60. A Trivia Bot Hack 61. Perform Feats of Math Hack 62. An Artificial Intelligence Bot Hack 63. Create Comic Strips Chapter 10. Announcement Bots Introduction: Hacks #64-67 Hack 64. Welcome Visitors Automagically Hack 65. Announce Newsgroup Posts Hack 66. Feed Syndicated RSS News Hack 67. Watch Online Games with MatchEd Chapter 11. Network Bots Introduction: Hacks #68-72 Hack 68. Link Channels on Multiple Networks Hack 69. Get a Remote Shell Hack 70. Tail Log Files Hack 71. Bridge Two Infobots Hack 72. A File-Sharing Bot Chapter 12. Channel Management Bots Introduction: Hacks #73-77 Hack 73. Protect the Channel Topic Hack 74. Invite Users into Channels Hack 75. Maintain Operator Status Hack 76. Set Up an Eggdrop Bot Hack 77. Manage Channels with an Eggdrop Chapter 13. The IRC Protocol Introduction: Hacks #78-85 Hack 78. Understanding the IRC Protocol Hack 79. Text Over Multiple Lines Hack 80. Fake an Ident Response Hack 81. Strip Formatting from Messages Hack 82. Remove Color from Messages Hack 83. Encrypt Messages Hack 84. Timestamp with the TS Protocol Hack 85. Understanding CTCP Messages Chapter 14. Other Ways to Connect to IRC Introduction: Hacks #86-94 Hack 86. Hypertext Links to IRC Channels Hack 87. IRC from Your Mobile Phone Hack 88. Enemies of Mobile IRC Hack 89. IRC from a Pocket PC Hack 90. Access IRC with Java Applets Hack 91. Use IRC from a Web Page Without Java Hack 92. Use IRC Within screen Hack 93. Set Up an IRC Proxy Hack 94. Use irssi and Its Proxy Chapter 15. Servers and Services Introduction: Hacks #95-100 Hack 95. Set Up Your Own IRC Server for Unix/Linux Hack 96. Install Services Hack 97. Set Up Your Own beware ircd Server Hack 98. Link Two IRC Servers Together Hack 99. Use MSN/ICQ/Jabber from IRC Hack 100. Combine BitlBee and CtrlProxy Colophon Index < Day Day Up > < Day Day Up > Copyright © 2004 O'Reilly Media, Inc. All rights reserved. Printed in the United States of America. Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O'Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or [email protected]. Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly Media, Inc. The Hacks series designations, IRC Hacks, the image of a hacksaw, "Hacks 100 Industrial-Strength Tips and Tools," and related trade dress are trademarks of O'Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. Small print: The technologies discussed in this publication, the limitations on these technologies that technology and content owners seek to impose, and the laws actually limiting the use of these technologies are constantly changing. Thus, some of the hacks described in this publication may not work, may cause unintended harm to systems on which they are used, or may not be consistent with applicable user agreements. Your use of these hacks is at your own risk, and O'Reilly Media, Inc. disclaims responsibility for any damage or expense resulting from their use. In any event, you should take care that your use of these hacks does not violate any applicable laws, including copyright laws. < Day Day Up > < Day Day Up > Foreword The last 20 years have introduced us to new ways of communicating with other people. One of the most interactive new communication techniques is keyboard-based chatting, in which the text typed on the keyboard of one person is shown straightaway on the screen of another person, or a group of people, located far away, perhaps on the other side of the world. Internet Relay Chat (IRC) is an open source distributed chat environment used widely around the Internet. There are thousands of chat programs, and there were at least hundreds of chat programs before IRC saw the first light in August 1988. What made IRC different from these other chat programs? It was and still is the possibility to network individual chat programs (IRC servers) to one another, thus forming a worldwide, distributed, and decentralized chat network. The ability to network, without maintaining a central location of control, has been the key for success for IRC, WWW, USENET News, and many other systems. Similarly, the inability to distribute control has been the reason for failure for many occasions. Giving out control and empowering others with the power to work, learn, and develop software allows for new innovations. Keeping control to yourself is often much easier to do, but it slows down progress by making it difficult, sometimes impossible, to innovate. IRC started as one summer trainee's programming exercise. A hack grew into a software development project that hundreds of people participated in and became a worldwide environment where tens of thousands of people now spend time with one another. I have found many of my present friends through IRC and learned a significant part of my present software engineering knowledge while using and working with IRC. That would not have been possible without learning from code examples and hacks from others.