]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/parse.c
CurrentTime -> rb_currenttime();
[irc/rqf/shadowircd.git] / src / parse.c
index 38e0d30dca0730dfafd7a1cd4a30835ea1f35410..36976ce7cfcc7c32d21c24b9c78f237651e11523 100644 (file)
@@ -40,7 +40,6 @@
 #include "send.h"
 #include "msg.h"
 #include "s_conf.h"
-#include "memory.h"
 #include "s_serv.h"
 #include "packet.h"
 
@@ -133,7 +132,7 @@ parse(struct Client *client_p, char *pbuffer, char *bufend)
        struct Message *mptr;
 
        s_assert(MyConnect(client_p));
-       s_assert(client_p->localClient->fd >= 0);
+       s_assert(client_p->localClient->F->fd >= 0);
        if(IsAnyDead(client_p))
                return;
 
@@ -600,10 +599,10 @@ do_numeric(char numeric[], struct Client *client_p, struct Client *source_p, int
                int tl;         /* current length of presently being built string in t */
                for (i = 2; i < (parc - 1); i++)
                {
-                       tl = ircsprintf(t, " %s", parv[i]);
+                       tl = rb_sprintf(t, " %s", parv[i]);
                        t += tl;
                }
-               ircsprintf(t, " :%s", parv[parc - 1]);
+               rb_sprintf(t, " :%s", parv[parc - 1]);
        }
 
        if((target_p = find_client(parv[1])) != NULL)
@@ -658,9 +657,9 @@ do_numeric(char numeric[], struct Client *client_p, struct Client *source_p, int
                return;
        }
        else if((chptr = find_channel(parv[1])) != NULL)
-               sendto_channel_local(ALL_MEMBERS, chptr,
-                                    ":%s %s %s %s",
-                                    source_p->name, numeric, chptr->chname, buffer);
+               sendto_channel_flags(client_p, ALL_MEMBERS, source_p, chptr,
+                                    "%s %s%s",
+                                    numeric, chptr->chname, buffer);
 }
 
 static void do_alias(struct alias_entry *aptr, struct Client *source_p, char *text)