Commit Graph

277 Commits

Author SHA1 Message Date
Reynir Reynisson
670fd99fb4 Rename IRC{Connection,Event} -> {Connection,Event}
I don't feel it's necessary to tag the types with IRC, as a client would
tag it with the module name anyway. Example:

    var conn irc.IRCConnection
    // ...

vs.

    var conn irc.Connection
    // ...
2012-05-11 13:35:25 +02:00
lye
4f82a31c9c Minor tweaks to play nicely with the new go tool 2012-03-28 01:15:26 -05:00
lye
f2faa10846 Refactor reader/writer/pinger
The old code relied on a global bool for reconnect synchronization; this
would cause the reader/writer to stop (and not restart) on every other
`IRCConnection` when one was `Reconnect`d. This patch renames the
methods to indicate they loop, makes them methods on `IRCConnection`,
and uses a member of `IRCConnection` for synchronization rather than a
global.
2012-03-21 23:08:21 -05:00
lye
b06c2dfa4a Standardized on 'irc' as the method receiver name for IRCConn methods 2012-03-21 23:02:29 -05:00
lye
31036ff926 Remove calls to fmt.Printf; send to IRCConn.Log chan if it is non-nil 2012-03-21 22:57:35 -05:00
lye
a910f6d47d Minor formatting changes 2012-03-21 22:50:21 -05:00
lye
a008509e20 Kill the example, will replace with tests later 2012-03-21 22:39:33 -05:00
lye
5fe3fea8c0 Hurrah, starting a real fork.
The old codebase is too messy for my taste and doesn't provide a clean
enough API. I don't like the name either, so I'm also rebranding it. I
don't care.
2012-03-21 22:38:22 -05:00
lye
d544994641 rfc1459 compliance: PASS before NICK/USER 2012-03-20 23:11:35 -05:00
lye
07b619e8f2 Temporarily use my tls fixes until they're merged 2012-03-20 23:08:05 -05:00
lye
52c17040d5 Make the SSL config app-configurable 2012-03-18 17:08:05 -05:00
lye
b62f72a746 Hack in SSL support 2012-03-18 16:51:13 -05:00
Thomas Jager
67c1c92623 Merge pull request #10 from mjard/master
Fixes against weekly.2012-02-22
2012-02-25 01:51:33 -08:00
Michael Jard
a0256382be Fixes against weekly.2012-02-22
Convert time/duration variables
Clean up duration math
2012-02-25 00:52:19 -08:00
tj
4e661a3954 Gofix 2011-11-07 01:26:12 +01:00
Thomas Jager
a303faccdb Merge pull request #9 from icanhas/r60-fix
Fix build errors with new versions of go
2011-11-06 16:08:28 -08:00
ich
0828d4cf56 Fix build errors with new versions of go 2011-11-06 01:58:17 +00:00
Thomas Jager
726363f01f Merge pull request #8 from mjard/master
minor updates
2011-05-22 12:30:21 -07:00
Michael Jard
0a5d471404 fix minor issue where bot tries to set its nick every 15 minutes,
even if it has the wanted nick.
2011-05-21 23:24:35 -07:00
Michael Jard
78a4c71736 Add ability to silence callback handler 2011-05-21 21:06:22 -07:00
tj
9d322aca1a Compabillity fixes for new go core version 2011-04-05 10:37:17 +02:00
tj
ea8495857e Better nick recapture 2011-02-03 01:16:13 +01:00
tj
cf4e9f829a Crashfix on empty privmsg 2010-11-21 21:20:18 +01:00
tj
deae8abc23 Use append built-in instead of custom function 2010-11-19 19:36:28 +01:00
tj
105d6d61d3 Add part, patch by soul9 2010-10-19 14:12:17 +02:00
tj
79ac1741ea Add irccon.Quit() and irccon.Cycle()
Quit() Sends QUIT to server and exits the main loop.
Cycle() Sends QUIT to server and reconnects.
2010-10-18 21:46:34 +02:00
tj
8b8321be96 Check for closed channel in writer to avoid throw/crash 2010-10-18 21:34:07 +02:00
tj
6f170547d3 Fix the pinger/ticker code a bit. Thanks soul9 ;) 2010-10-16 20:43:59 +02:00
tj
0b332411b6 Replace broken Makefile 2010-10-15 12:44:14 +02:00
tj
334fc8ff3e Merge branch 'master' of git://github.com/thoj/Go-IRC-Client-Library 2010-10-11 21:18:02 +02:00
tj
f69d3c8182 merge 2010-10-11 21:17:59 +02:00
tj
1fe11ca937 Kill channels for fater retry 2010-10-11 21:17:17 +02:00
tj
fd854c475a Fix adding more then one callback for same eventcode, grow slice dynamically. 2010-10-09 15:11:28 +02:00
tj
abc18957ff More than one callback in example 2010-10-09 15:10:37 +02:00
tj
e554b8b4a0 More than one callback in example 2010-10-09 15:09:59 +02:00
tj
ca78ca8c10 Fixing compile for new go version, again. (Sorry about that) 2010-09-29 11:53:44 +02:00
tj
e9248114a7 Merge 2010-09-29 10:07:33 +02:00
tj
2cff95559b foo 2010-09-29 10:06:55 +02:00
tj
bebd74ffc0 Updating readme for Password support 2010-09-29 09:55:31 +02:00
tj
9fa6bbdeca Avoid changing interface for password support 2010-09-29 09:52:43 +02:00
tj
95eedcedd3 Fix bad merge 2010-09-29 09:04:14 +02:00
tj
c64043c75b Merge 2010-09-29 09:00:16 +02:00
tj
998e1c3050 Add support for server PASSWORD 2010-09-29 08:58:32 +02:00
Thomas Jäger
3d0ffc5d06 Merge branch 'master' of git@github.com:thoj/Go-IRC-Client-Library 2010-09-23 18:56:15 +02:00
tj
1165a7fbf2 Fix compile + bit more robust reconnect code 2010-09-23 18:54:34 +02:00
tj
bcec3b6f11 Prefix nick instead of suffix if the nick is in use and over 8 characters long 2010-08-08 23:10:54 +02:00
tj
2235f8b8ed Fix edge case crash 2010-08-06 23:25:03 +02:00
tj
f13d706686 Correct splitting of event codes 2010-08-06 12:49:56 +02:00
tj
a557416dcf Better parameter order for ReplaceCallback 2010-03-12 21:55:56 +01:00
tj
2c7ddd7719 Fix time reply 2010-03-12 21:43:50 +01:00