Code Monkey home page Code Monkey logo

iroffer-dinoex's People

Contributors

dinoex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iroffer-dinoex's Issues

fail build with miniupnp 2.0

gcc -c -Isrc -I/usr/include -I/usr/include -I/usr/include -I/usr/include/ruby-2.3.0 -I/usr/include/ruby-2.3.0/x86_64-linux -I/usr/include/ruby-2.3.0/x86_64-linux -Wall -march=native -O2 -pipe -fstack-protector-strong -o o.en/upnp.o src/upnp.c
src/upnp.c: In function 'init_upnp':
src/upnp.c:89:13: error: too few arguments to function 'miniwget'
   descXML = miniwget(dev->descURL, &descXMLsize, 0);
             ^~~~~~~~
In file included from src/upnp.c:44:0:
/usr/include/miniupnpc/miniwget.h:19:25: note: declared here
 MINIUPNP_LIBSPEC void * miniwget(const char *, int *, unsigned int, int *);
                         ^~~~~~~~
make: *** [Makefile:173: o.en/upnp.o] Error 1

iroffer only responds to server PING when sent with a trailing param

Hi, and thanks for your project!

I'm one of the maintainers of https://github.com/oragono/oragono, and we got a report that iroffer wasn't interoperating correctly with oragono, specifically that oragono was disconnecting it due to ping timeout. Upon further investigation, the original reporter determined that Oragono was sending lines of the form PING bot_nickname\r\n, where bot_nickname is the nickname used by the iroffer instance, and iroffer wasn't responding to them.

This appears to be due to a bug in iroffer's message parsing:

if (strncmp(ipl->line, "PING :", 6) == 0) {

This line assumes that the parameter to PING will be an RFC1459 trailing parameter, i.e., prefixed with :. But in fact this is not a requirement of the protocol, and it is valid for oragono to send PING bot_nickname\r\n without the colon.

I haven't tested it, but I think this patch will work:

diff --git a/src/dinoex_irc.c b/src/dinoex_irc.c
index 5224af25..94d31a70 100644
--- a/src/dinoex_irc.c
+++ b/src/dinoex_irc.c
@@ -1286,7 +1286,7 @@ static void ir_parseline2(ir_parseline_t *ipl)
 
 #if PING_SRVR
   /* server ping */
-  if (strncmp(ipl->line, "PING :", 6) == 0) {
+  if (strncmp(ipl->line, "PING ", 5) == 0) {
     if (gdata.debug > 0)
       ioutput(OUT_S, COLOR_NO_COLOR,
               "Server Ping on %s: %s",

Thanks for your time.

fork() error with cygwin and ruby

using cygwin 1.7.24 and ruby 1.9.3-p429-1 there is a fork error complaining about cygruby191.dll please see attached log. compiled using
./Configure -geoip -upnp -curl -ruby

LOG:
Welcome to iroffer-dinoex - http://iroffer.dinoex.net/ - geoip,upnp,curl,openssl ,ruby
Version 3.30 (Win32) 1.7.24

** iroffer-dinoex is distributed under the GNU General Public License.
** please see the LICENSE for more information.

** Starting up...
** Window Size: 80x24
** Started on: 2013-08-17 22:34
** Loading bfsvc.ini ...
** Checking for completeness of config file ...
** You Are Running CYGWIN_NT-6.1-WOW64 1.7.24(0.269/5/3) on a i686, Good
** 2013-08-17 22:34: Loading State File...
** 2013-08-17 22:34: [Version 2 State File]
** 2013-08-17 22:34: [Written by iroffer-dinoex 3.30 (Win32) 1.7.24, CYGWIN_NT -6.1-WOW64 1.7.24(0.269/5/3)]
** 2013-08-17 22:34: [Written on 2013-08-17 22:30]
** 2013-08-17 22:34: [Record 0.0kB/s]
** 2013-08-17 22:34: [Bandwidth Record 0.0kB/s]
** 2013-08-17 22:34: [Total Transferred 0]
** 2013-08-17 22:34: [Total Runtime 0 Days 0 Hrs and 1 Min]
** 2013-08-17 22:34: [Last Log Rotate 2013-08-17 21:49]
** 2013-08-17 22:34: [Daily Transfer Limit Used 0]
** 2013-08-17 22:34: [Daily Transfer Limit Ends 2013-08-18 00:00]
** 2013-08-17 22:34: [Weekly Transfer Limit Used 0]
** 2013-08-17 22:34: [Weekly Transfer Limit Ends 2013-08-18 00:00]
** 2013-08-17 22:34: [Monthly Transfer Limit Used 0]
** 2013-08-17 22:34: [Monthly Transfer Limit Ends 2013-09-01 00:00]
** 2013-08-17 22:34: [Found 0 ignores]
** 2013-08-17 22:34: [Found 0 messages]
** 2013-08-17 22:34: [Found 0 packs]
** 2013-08-17 22:34: [Found 0 queues]
** 2013-08-17 22:34: [Found 0 queues]
** 2013-08-17 22:34: [Done]
** 2013-08-17 22:34: Writing pid file...
** 2013-08-17 22:34: Attempting Connection to irc.xeromem.com:6697 (ssl)
0 [main] iroffer 5148 child_info_fork::abort: C:\cygwin\bin\cygruby191.dll : Loaded to different address: parent(0x9B0000) != child(0x630000)
** 2013-08-17 22:34: WARNING: fork(): Resource temporarily unavailable
ruby 1.9.3p429 (2013-05-15) [i386-cygwin]
** 2013-08-17 22:34: UPnP discover
** 2013-08-17 22:34: UPnP device : desc: http://10.10.10.1:2869/IGatewayDeviceDe scDoc
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
** 2013-08-17 22:34: Startup running: 2163 ms
** 2013-08-17 22:34: Reconnecting to server (7 seconds) on 1
** 2013-08-17 22:34: Attempting Connection to irc.xeromem.com:6697 (ssl)
0 [main] iroffer 3716 child_info_fork::abort: C:\cygwin\bin\cygruby191.dll : Loaded to different address: parent(0x9B0000) != child(0x610000)
** 2013-08-17 22:34: WARNING: fork(): Resource temporarily unavailable
** 2013-08-17 22:35: Shutting Down
** 2013-08-17 22:35: Saving State File...
** 2013-08-17 22:35: Done

Automagic NSS dependency in iroffer-dinoex-3.28

Hi!
I maintain your package in Gentoo Linux. But we have a problem. Your package has automagic NSS dependency. NSS found, even if we have USE="-chroot"
It should be fixed in buildsystem.

Thanks.

json.txt.rb outputs invalid json

Been trying to write a javascript parser for the packlist, and found that json.txt.rb is not putting out a valid JSON-formatted file.

After a little research and experimentation, I've made some changes to the ruby script to output a file that is JSON friendly, which is attached..

json.txt

Build with ruby support

I've been attempting to create a Docker image with ruby support but so far I've only gotten 3.30 to enable while the snapshot will refuse no matter the libruby version.

Got any tips?


As soon as I write this, I happen to land on the right combination:
Debian Wheezy with ruby1.8-dev, ruby1.8 and libruby1.8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.