Thomas Jager
4f50f209c4
Fix parser. Tested with go-fuzz
2015-07-31 07:34:19 +02:00
Dainis
f69e2d3444
Fix - wait for waitgroup to sync before reconnecting again ensuring that it just doesn't keep on creating new goroutines
2015-07-14 09:35:22 +03:00
Julian Daube
f9d88d1af1
initialized .nickcurrent with .nick
...
fixes empty return of Nick() directly after initialising
2015-06-20 22:24:25 +02:00
Julian Daube
4f7b3d1c84
fixed a small bug which marks the connection alive to early
2015-06-20 22:21:27 +02:00
Keno Schwalb
4e1ebe0162
minor adjustments for multiple connections
2014-11-03 15:21:48 +00:00
Tyler Sommer
533177a490
Added Connected method
2014-10-23 18:17:58 -07:00
Thomas Jager
18b9dfbf29
Merge pull request #47 from GawainLynch/master
...
Add a formatted ACTION
2014-10-07 22:40:37 +02:00
Gawain Lynch
fc7dfec2b9
Add a formatted ACTION
2014-10-07 21:29:22 +01:00
Ant Zucaro
80f67f76b5
Add ReadLoop() debugging via Connection.Debug.
2014-10-05 08:56:52 -04:00
Ant Zucaro
f997fc841a
Add a 'VerboseReadLoop' option.
...
Troubleshooting responses from the IRC server becomes easier when
you can actually see the raw responses. This change adds a
'VerboseReadLoop' member to the Connection struct. When set to
true, the raw messages sent from the server will be placed into
the standard log for review. This message is printed before
evaluating any callbacks.
2014-10-04 08:20:58 -04:00
Ant Zucaro
066134263e
Change duplicate error message for missing irc.nick.
2014-10-04 08:10:14 -04:00
Wesley Dawson
30608bd31c
Use tls.DialWithDialer instead of tls.Client and remove irc.netsock
2014-08-13 18:35:37 -07:00
Chance Zibolski
06fee2df7d
disconnect: Clear callbacks before closing channels
2014-07-14 17:05:27 -07:00
Chance Zibolski
846881130f
Remove pread
2014-07-14 17:05:06 -07:00
Chance Zibolski
30980fcbad
Retrieve error chan from method.
...
This allows using the error chan in an interface.
Also moved the disconnect error into a named variable for checking specific
errors.
2014-07-14 16:02:09 -07:00
soda
9328e32771
removed irc.Disconnect() comment
2014-06-21 17:21:15 +02:00
soda
2a60a33ae9
removed debug-printfs
2014-06-21 16:53:24 +02:00
soda
32cee7464f
fix reconnect, make irc.end
2014-06-21 16:46:47 +02:00
soda
809b9be4e4
fixing reconnect
2014-06-21 16:30:15 +02:00
Thomas Jager
b73cc42bde
Remove Disconnect() from Quit(). Use ERROR feedback from server instead.
2014-06-18 15:59:07 +02:00
alsm
f27b0b53e2
Close channel to signal goroutines to quit and waitgroup to confirm that they have
2014-05-02 23:20:51 +01:00
Robin Walsh
31b6883175
Adding support for CTCP ACTION
2014-04-24 21:56:30 -07:00
tpltnt
f073b9b25c
style fixes
2014-02-16 14:20:13 +01:00
tpltnt
6e0280dae6
port range checking added
2014-02-16 11:41:38 +01:00
tpltnt
48983c2abf
refactoring: hasConnectionValues() integrated into Connection() + more detailed errors
2014-02-16 02:01:53 +01:00
tpltnt
4dcf7d03c5
hasValidValues() -> has ConnectionValues()
2014-02-16 01:10:08 +01:00
tpltnt
4ba3d1c0d2
more hasValidValues()
2014-02-16 00:56:21 +01:00
tpltnt
28bf282924
hasValidValues() + tests started
2014-02-16 00:32:02 +01:00
tpltnt
a4d40a90d5
catching empty arguments in IRC() + tests
2014-02-15 23:42:54 +01:00
tpltnt
7c96d05d11
CTCP spec linked
2014-02-14 16:13:17 +01:00
tpltnt
5baf7671c6
IRC RFCs added
2014-02-14 15:03:52 +01:00
tpltnt
c000e87dee
docs done
2014-02-14 14:51:57 +01:00
tpltnt
7f0d4b4a6d
method doc started
2014-02-14 14:29:56 +01:00
tpltnt
d55c9c19ab
package description added
2014-02-14 12:06:09 +01:00
Andrew Montgomery-Hurrell
9100ba0734
Added Whois, Who and Mode (also go fmt)
2014-02-13 21:49:28 +00:00
Thomas Jager
95288a16c5
Fix Formats and Send error to main goroutine on Disconnect
2014-02-12 08:42:10 +01:00
Kaleb Elwert
ea57336e8f
Replaces the Event.Message field with a function
...
Note that this purposefully breaks backwords compatibility. Because of
how Arguments are now handled, this will force users using this library
to update anything using this.
This is not bad, as it seems, because otherwise (just updating the
Event.Arguments to include the Message) the change could cause silent,
strange breakages.
2014-02-12 00:02:58 +01:00
Kaleb Elwert
e08cb2faf7
Makes the lib line up more with the irc rfc in message vs args handling
2014-02-12 00:02:50 +01:00
Andrew Montgomery-Hurrell
847ce8faa2
Make IRC logger public. No reason for disallowing overrides.
2014-02-10 19:56:16 +00:00
Andrew Montgomery-Hurrell
0b6c954b52
try to shutdown more safely so callbacks, etc don't try and use the read/write channels after they are closed
2014-02-10 19:54:07 +00:00
Andrew Montgomery-Hurrell
c0e6d50e0c
Added configurable timeouts and overridable version string
2014-02-09 10:20:58 +00:00
joe
c10849b4c0
Loop: catch reconnection errors; writeLoop: only log.Print if Debug
2013-09-25 23:37:11 -04:00
Philipp Schroer
655a41f804
Some improvements
...
* Remove unused struct elements
* Rename some things
* Reuse more code
* Use 512 byte read buffer
2013-04-02 19:09:45 +02:00
Thomas Jager
3228e64f1b
Add Nick change function
2013-03-13 12:53:08 +01:00
Thomas Jager
83136b6c73
Fix pinger
2012-11-11 10:51:14 +01:00
Thomas Jager
0ed7585b71
Add more helpers
2012-11-11 10:37:52 +01:00
Thomas Jager
9e880ef476
SSL -> TLS
2012-11-07 21:55:33 +01:00
Thomas Jager
c8f78ebf45
Change the way the pinger works.
...
Fix syning threads before reconnections
Formatting
2012-11-07 21:51:24 +01:00
Thomas Jager
e05c098519
Merge changes from other fork
2012-11-06 00:39:31 +01:00
Thomas Jager
be3afcc796
Merge branch 'master' of git://github.com/lye/cleanirc
...
Conflicts:
irc.go
irc_callback.go
irc_struct.go
Merge Interesting changes from fork
2012-11-06 00:38:20 +01:00