agl / pond

Pond
BSD 3-Clause "New" or "Revised" License
912 stars 109 forks source link

add external command hook POND_HOOK_RECEIVE #63

Closed leif closed 9 years ago

leif commented 10 years ago

Perhaps other command hooks should be added. This feels out of place in network.go.

leif commented 10 years ago

Should I copy+paste this into both gui.go and cli.go?

Or perhaps I should add a processFetch method to client.go (which would then call the ui's processFetch) so this doesn't need to live in network.go?

I've been using this patch since I wrote it and just remembered that it still isn't merged. I find it quite useful!

ioerror commented 10 years ago

@leif - I think it makes sense to break it out into a generic file and then include it in each UI implementation. Want to do that and pull again?

leif commented 9 years ago

opened #128 with this code in a new receiveHook function in client.go, instead of network.go