Questions tagged [irc]

IRC - Stands for Internet Relay Chat is an internet based chat protocol. Main idea is to have users connect to a server network, where they can then send messages to each other through channels or direct chat. Today there's quite a few different networks, usually each with a main thematic. Stack Overflow got its own channel on the FreeNode network. You can read more about that on the full tag wiki page.

Overview

IRC is an internet chat protocol, first written in 1988. It bascially features IRC servers organized into networks, where an user can send message to other ones. The main feature is the channels that users can join, much like other chat rooms.

Network infrastructure and protocol

A network is generally made of several different servers, linked together through the same IRC protocol, where users and channels are common. Usually, just joining an empty channel will automatically create it, although this might not be the case everywhere. The IRC protocol also features moderators of different levels and channel options, although this has been found to be too weak for general use. Most IRC Networks now feature IRC Services, that enable someone to configure and protect channels in greater detail.

The IRC protocol only uses plaintext, as opposed to XMPP for example that uses XML style, and is therefore very simple to parse and use. Because of the lack of security of this approach, it's now usually used along a SSL connection. A typical IRC query is of the form: :origin KEYWORD contents - with the origin and contents sections being optional : a query could be as much as "LIST" to get a list of current network channels.

The server connection process is also very simple: the user only has to send out information about desired nickname, username, and displayed real name, before being able to use the network. Because of that, there has been quite a few implementation of IRC Bots and scripting platforms for various uses (EG. Eggdrop, Supybot, or simply home-made applications)

One of the big loopholes in the IRC protocol as described by RFC1459 is that it does not specify the use of character encoding past the 7-bit ASCII representation. Channels and users have been known to mostly use either utf-8 or latin-1 (iso8856-1). There's no shortage of problems made by bad software utf-8 parsers, to the extent of being able to crash people's client at will.

Stack Overflow IRC channel

Stack Overflow has an IRC channel on the FreeNode network (irc.freenode.net), #stackoverflow You could join it either by inputing above info in an IRC client, using This kind of browser link, or using a JS Web Applet such as FreeNode's QIRC. FreeNode is also the home of hundreds of community projects, especially open source ones.

More information

Detailed informations about the IRC protocol can be found into the IETF related RFCs, the initial one being RFC1459. Additions were later made, although some of these remain un-supported to this date.

Some popular IRC clients include:

Many other applications such as GNOME's Empathy, or Pidgin, also come with builtin IRC support.

1108 questions
-1
votes
1 answer

IRC Client in Visual Basic

Hello I am trying to create a chat bot for my twitch channel in Visual Basic. I did some research and I found this code: Public Class My_IRC Private _sServer As String = String.Empty '-- IRC server name Private _sChannel As String =…
Jesse
  • 59
  • 8
-1
votes
1 answer

Randomizing script for HexChat IRC Client, in Python or Perl

I have a hunch that the answer to this is embarassingly easy, but nonetheless I can't figure it out (the fact that I don't know any of these languages at all might be the case). What I need is a script which would work this way: First, you type…
-1
votes
1 answer

Python IRC bot: Return nicks in channel

I'm trying to have my bot call /NAMES of a certain channel when a command is called, and return a list of everyone voiced. Some help would be much appreciated
samwilber
  • 17
  • 2
-1
votes
2 answers

Passing References through forms vb.net

Is there anyone with very good knowledge in vb.net. I am working on my final semester project. I need to pass objects between forms. I have my codes of two forms here. http://pastebin.com/xP1LdL3t http://pastebin.com/fpuY98NT To connect to the irc…
-1
votes
1 answer

TypeError: 'int' object has no attribute '__getitem__' - Error recieved in IRC weather bot in Python

Okay, so I've got a bit of Python IRC Bot code, and I recently added a weather command to it, but it doesn't seem to work... heres the code # Import some necessary libraries. import socket import time import httplib def…
rvzm
  • 3
  • 2
-1
votes
1 answer

sending messages over winsock for irc ident

I'm just began writing an IRC bot and I'm having some problems sending the ident, here is part of my code that i'm having the issue with: $nick = "bot1818" $writer.AutoFlush = $true $writer.NewLine = $true $writer.WriteLine("USER $nick…
sean
  • 47
  • 1
  • 7
-1
votes
2 answers

ZNC - Cheat IRC server's connections from ip limit

I want to connect more than 5 bouncers to my favourite irc network. Unfortunately, server accepts only up to five connections from one IP. How can i do it and is it real? I have only one server with one IP but i have a domain with an unlimited…
hTml
  • 11
  • 2
-1
votes
2 answers

What solution would you suggest for implementing both chat and IM on the site?

Should I pick up IRC or go another route? What I need are public chat and private instant messaging on my social network. I do not wish to use 3rd-party solutions. (I plan to rent VPS for the matter.)
user306694
-1
votes
1 answer

Making a connection to IRC through SSL

Could someone please show me an example of how to make an SSL connection to an IRC server? I have tried reading about SslStreams but I just don't get it. I am able to connect to IRC without SSL using this: sock.Connect(server, port); …
-1
votes
1 answer

Pirc bot "2/10" doesn't equals "2/10"

I want to write IRC Twitch bot. I have never used Pirc library before, so i wrote this simple bot to get started. BasicBot class : public class BasicBot extends PircBot{ public BasicBot(String name){ super(); this.setName(name); } …
Kentox
  • 21
  • 1
  • 2
-1
votes
1 answer

How would I go about fixing this?

I'm using the following to try and write to a yaml file class NoteDB attr_reader :data def initialize(file) @file = file if File.exists?(@file) @data = YAML.load_file(@file) else puts…
IotaSpencer
  • 77
  • 10
-1
votes
1 answer

Making a module use functions and variables defined within the main program

I'm making an IRC bot for my network. To make the code cleaner, I am defining functions in modules. All these modules are in a folder called "plugins". One module say calls the function sendMsg and fails because it's trying to run a function defined…
NiaKitty
  • 93
  • 4
-1
votes
1 answer

Python: IndexError: list index out of range with IRC Bot

I have been making a Python Twitch IRC Bot and it all works besides one issue. About every 20 mins it will crash with the error: Traceback (most recent call last): File "E:\Geekster_Bot\Geekster_Bot Code\Geekster_Bot_Test_Write", line 54, in…
Mr.Unknown21
  • 35
  • 1
  • 6
-1
votes
2 answers

WinSocket IRC USER command

When i am connecting to an IRC server via telnet everything works fine, but in my program there is no respond from server after the greeting message. What's wrong? PS when i am sending "JOIN #channel" server responds. fragment of the code: while…
-1
votes
1 answer

Java action based on event in a chatroom

This may not be possible yet, but I was wondering if there was any way to have a Java process essentially 'listen' in a chatroom for a specific string, and once that string is recognized, it would call an action in the program. For example, let's…
Robert Maxwell
  • 107
  • 1
  • 2
  • 7