Thomas Jager
da78ed515c
BREAKING CHANGES: Run callbacks in main thread and int callback id.
...
Execute callbacks in main thread. This will break callbacks that
use a long time to execute. Create your own thread in AddCallback
using gorutines on long running callbacks.
Use deterministic IDs for AddCallback. Changes the id from SHA-hash
to int.
2016-02-06 21:38:53 +01:00
Thomas Jager
ab737c68eb
Remove unnecessary return
2016-02-06 21:20:35 +01:00
Thomas Jager
a767654908
Merge pull request #69 from peted27/master
...
fix reconnection logic
2015-12-05 11:32:46 +01:00
peted
5a16c2581e
revert some changes but also update err chan for new connection so further errors are received in Loop
2015-11-14 23:51:15 +10:00
peted
937f84605b
fix reconnection logic
2015-11-14 23:10:39 +10:00
Thomas Jager
db3338ebd4
Merge pull request #68 from lukevers/quit-message
...
Add support for specifying a quit message.
2015-10-28 14:31:23 +01:00
Luke Evers
f0c83dc012
Add support for specifying a quit message.
2015-10-28 08:58:41 -04:00
Thomas Jager
988aaaacd9
Merge pull request #66 from dainis/master
...
Fix - #65 ,
2015-08-28 20:28:27 +02:00
Dainis Tillers
3b5fa9fe31
Fix - #65 , when disconnect is called it will try to reconnect again in the Loop function, but Disconnect has already closed the channel
2015-08-28 21:01:23 +03:00
Thomas Jager
172717c0c5
Remove fuzzing testcases
2015-07-31 21:34:27 +02:00
Thomas Jager
3f51dd25c7
Move fuzzing code to seperate file
2015-07-31 21:33:36 +02:00
Thomas Jager
f204a14e00
Only trim newline/linefeed
2015-07-31 13:03:48 +02:00
Thomas Jager
e2be9c53c1
Test empty Action
2015-07-31 13:03:31 +02:00
Thomas Jager
6ce1e34c21
Don't crash on empty ACTION
2015-07-31 13:03:09 +02:00
Thomas Jager
c47f9d8e3d
Fuzz testing callbacks
2015-07-31 08:30:21 +02:00
Thomas Jager
8b3e6a50ac
Fix ident
2015-07-31 08:29:20 +02:00
Thomas Jager
414fe0a201
Fix testcase. Id can come in diffrent orders.
2015-07-31 08:28:54 +02:00
Thomas Jager
6c849e1147
Merge branch 'master' of github.com:thoj/go-ircevent into fuzz
2015-07-31 07:35:48 +02:00
Thomas Jager
4b30e65f83
Fix indentation
2015-07-31 07:35:34 +02:00
Thomas Jager
4f50f209c4
Fix parser. Tested with go-fuzz
2015-07-31 07:34:19 +02:00
Thomas Jager
35f8ae857e
Merge pull request #62 from alaska/master
...
Add kick/multi kick. Properly randomize. Catch invalid CTCP messages and log
2015-07-31 07:05:02 +02:00
Andy Walker
b0ed3d4bd5
should return in case of CTCP error
2015-07-30 13:03:55 -04:00
Andy Walker
03b22b08f4
Report on unterminated CTCP messages
...
A bug was discovered where, under certain circumstances that are still
being researched, the library would panic on a message that started with
\0x01, but did not end with it. This would cause the re-slice to panic,
because the library assumes a terminating index >0, effectively
introducing the possibility of msg = msg[1:0]. Since this violates the
CTCP spec, it is an error, and should be logged, along with the
complete, escaped message.
2015-07-30 12:58:23 -04:00
Andy Walker
6112236593
fix multi-kick
...
Spec defines multiple users as joined by spaces not commas
2015-07-30 12:57:48 -04:00
Thomas Jager
747806b8dd
Move connection tests last
2015-07-30 14:41:53 +02:00
Thomas Jager
2c74703554
Merge pull request #60 from dainis/master
...
Fix - wait for waitgroup to sync before reconnecting
2015-07-30 12:46:56 +02:00
Andy Walker
ad73608a87
add Kick and MultiKick commands
2015-07-21 18:41:16 -04:00
Andy Walker
b49099e075
use rand.Seed() in init() to properly randomize
2015-07-20 16:13:15 -04: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
Thomas Jager
f169aaad6f
Merge pull request #58 from julidau/master
...
fixing small bugs
2015-06-25 10:38:50 +02: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
Thomas Jager
087ae892d0
CTCP Messages must be more then 2 characters long.
...
Avoid panic on malformed CTCP messages.
2015-03-31 15:14:13 +02:00
Thomas Jager
47e552f62d
Merge pull request #56 from 9uuso/master
...
Fix commands to correspond parameter name
2015-03-22 08:39:03 +01:00
Juuso Haavisto
f467f72ebb
fix command parameters
2015-03-21 21:13:32 +02:00
Thomas Jager
5e6704d895
Merge pull request #49 from Caerostris/master
...
minor adjustments for multiple connections
2014-11-03 17:37:15 +01:00
Keno Schwalb
4e1ebe0162
minor adjustments for multiple connections
2014-11-03 15:21:48 +00:00
Thomas Jager
9c4d007b9f
Merge pull request #48 from veonik/master
...
Added Connected method
2014-11-02 20:53:40 +01: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
Thomas Jager
03e596dff4
Merge pull request #45 from antzucaro/master
...
Add verbose logging for ReadLoop().
2014-10-05 23:54:51 +02: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
Thomas Jager
baefdc5d0b
Merge pull request #44 from julianec/master
...
Set irc.currentnick to irc.nick if irc.currentnick is empty.
2014-08-27 21:38:15 +02:00
Juliane Clausen
bdde4f62f9
Set irc.currentnick to irc.nick if irc.currentnick is empty.
...
Handle nicks longer than 8 characters for IRC event 437 too.
Fixes issue 43 (IRC client gets stuck on nick collision)
2014-08-27 20:51:31 +02:00
Thomas Jager
90dc7f966b
Merge pull request #41 from whd/master
...
Use tls.DialWithDialer instead of tls.Client and remove irc.netsock
2014-08-14 15:11:46 +02:00
Wesley Dawson
30608bd31c
Use tls.DialWithDialer instead of tls.Client and remove irc.netsock
2014-08-13 18:35:37 -07:00
Thomas Jager
40cfe292a9
Merge pull request #40 from oniichaNj/master
...
no longer breaks on invalid (too short) ctcp requests
2014-08-06 09:09:35 +02:00