IRC Hacks

Paul Mutton

  • 出版商: O'Reilly
  • 出版日期: 2004-08-06
  • 售價: $1,090
  • 貴賓價: 9.5$1,036
  • 語言: 英文
  • 頁數: 432
  • 裝訂: Paperback
  • ISBN: 059600687X
  • ISBN-13: 9780596006877
  • 下單後立即進貨 (約1週~2週)




IRC ( Internet Relay Chat) may very well turn out to be the world's most successful hack. In 1988, Jarkko Oikarinen wrote the original IRC program at the University of Oulu, Finland. As he says in his foreword, "IRC started as one summer trainee's programming exercise. A hack grew into a software development project that hundreds of people participated in, and then became a worldwide environment where tens of thousands of people now spend time with each other. I have found many of my friends through IRC and learnt 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".

IRC has continued to grow in popularity since its inception. Millions of people from all over the world now use IRC to chat with friends, discuss projects and collaborate on research. With a simple, clearly defined protocol, IRC has become one of the most accessible chat environments, with clients written for a multitude of operating systems. And IRC is more than just a simple chat system it is a network of intercommunicating servers, allowing thousands of clients to connect from anywhere in the world using the IRC protocol.

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 (

Like all of our Hacks books, there are many different ways to use IRC Hacks. You can read the book from cover to cover, but you might be better served by picking an interesting item from the table of contents and just diving in.

If you're relatively new to IRC, you should considering starting with a few hacks from each progressive chapter. Chapter 1 starts you off by showing you how to connect to IRC, while Chapter 2 acquaints you with the everyday concepts you'll need to use IRC effectively. Chapter 3 is all about users and channels, and introduces the first pieces of code. Chapter 4 shows you how to make useful enhancements to IRC clients.

Chapter 5 is where you will learn the basics about creating IRC bots, with Chapters 6-12 introducing more complex bots that can be used for logging, servicing communities, searching, announcing, networking, managing channels or simply for having fun. Chapter 13 delves into the IRC protocol in more detail, and Chapter 14 demonstrates some interesting alternative methods for connecting to IRC. Finally, Chapter 15 will move you on to new pastures by showing you how to set up your own IRC server.

This book presents an opportunity to learn how IRC works and how to make best use of some of the features that have made it the most successful, most scalable, and most mature chat system on this planet. IRC Hacks delves deep into the possibilities.


Table of Contents:




Chapter 1. Connecting to IRC
       1. IRC from Windows
       2. IRC from Linux
       3. IRC from Mac OS X
       4. IRC with ChatZilla

Chapter 2. Using IRC
       5. The IRC Model
       6. Common Terms, Abbreviations, and Phrases
       7. Common Acronyms and Initialisms
       8. Register with NickServ
       9. Register Your Channel with ChanServ
       10. The QuakeNet L Channel Bot
       11. Fix Channel Problems with CHANFIX

Chapter 3. Users and Channels
       12. Find Relevant Channels and Servers
       13. Guess the Time Zone of a User
       14. Study Channel Statistics with pisg
       15. Find Users in Channels
       16. Filter Channel Lists

Chapter 4. Enhancing IRC Clients
       17. Automatic Completion of Nicknames
       18. Add Timestamps to mIRC Messages
       19. Highlight Lines in mIRC
       20. Automate mIRC with Scripting
       21. Format Text
       22. Colorize Text
       23. Play Sounds
       24. Enhance irssi with Perl
       25. Connect to Multiple Servers
       26. Secure Your IRC Connection with SSL
       27. Tunnel Your IRC Connection with SSH
       28. Automate Voice Management
       29. Make IRC Talk
       30. Add Your IRC Nickname to Your Webcam

Chapter 5. Writing IRC Bots
       31. IRC Over Telnet
       32. A Simple Perl IRC Client
       33. IRC with Perl and Net::IRC
       34. A Simple Java IRC Client
       35. IRC with Java and PircBot
       36. A Simple Python IRC Client
       37. IRC with Python and IRCLib
       38. Extend the Python IRCLib
       39. The Ethics of IRC Bots

Chapter 6. Logging Bots
       40. Keep Tabs on People
       41. Log URLs People Mention
       42. Blog from IRC
       43. A Continuity Bot

Chapter 7. Community Bots
       44. Infer Social Networks from IRC
       45. Run an Infobot
       46. Use PPF for Gaming Clans
       47. Write a Plug-in for PPF
       48. Getting Friendly with FOAFBot
       49. Interrogate Trust Networks with TrustBot
       50. Pass Notes to Other Users

Chapter 8. Search and Query Bots
       51. Search the Web with Google
       52. Use the Dictionary
       53. Check the Weather
       54. Don't Get Lost in Translation
       55. Convert Currency
       56. Find Out When People Are on the Network
       57. Search for Books on Amazon

Chapter 9. Fun Bots
       58. A DiceBot
       59. An Egg Timer
       60. A Trivia Bot
       61. Perform Feats of Math
       62. An Artificial Intelligence Bot
       63. Create Comic Strips

Chapter 10. Announcement Bots
       64. Welcome Visitors Automagically
       65. Announce Newsgroup Posts
       66. Feed Syndicated RSS News into IRC Channels
       67. Watch Online Games with MatchEd

Chapter 11. Network Bots
       68. Link Channels on Multiple Networks
       69. Get a Remote Shell
       70. Tail Log Files
       71. Bridge Two Infobots
       72. A File-Sharing Bot

Chapter 12. Channel Management Bots
       73. Protect the Channel Topic
       74. Invite Users into Channels
       75. Maintain Operator Status
       76. Set Up an Eggdrop Bot
       77. Manage Channels with an Eggdrop

Chapter 13. The IRC Protocol
       78. Understanding the IRC Protocol
       79. Text Over Multiple Lines
       80. Fake an Ident Response
       81. Strip Formatting from Messages
       82. Remove Color from Messages
       83. Encrypt Messages
       84. Timestamp with the TS Protocol
       85. Understanding CTCP Messages

Chapter 14. Other Ways to Connect to IRC
       86. Hypertext Links to IRC Channels
       87. IRC from Your Mobile Phone
       88. Enemies of Mobile IRC
       89. IRC from a Pocket PC
       90. Access IRC with Java Applets
       91. Use IRC from a Web Page Without Java
       92. Use IRC Within screen
       93. Set Up an IRC Proxy
       94. Use irssi and Its Proxy

Chapter 15. Servers and Services
       95. Set Up Your Own IRC Server for Unix/Linux
       96. Install Services
       97. Set Up Your Own beware ircd Server
       98. Link Two IRC Servers Together
       99. Use MSN/ICQ/Jabber from IRC
       100. Combine BitlBee and CtrlProxy