]> jfr.im git - solanum.git/blobdiff - modules/core/m_join.c
extensions/umode_hide_idle_time: mask times for hidden sources (#373)
[solanum.git] / modules / core / m_join.c
index b155677c6d0f2263a0c7b5cb04840e65ea178bce..c5cac107b3551d8e8774858866dabe7db598bedc 100644 (file)
@@ -374,7 +374,7 @@ m_join(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
                        sendto_one(source_p, form_str(RPL_TOPICWHOTIME),
                                   me.name, source_p->name, chptr->chname,
                                   chptr->topic_info,
-                                  (unsigned long)chptr->topic_time);
+                                  (long long)chptr->topic_time);
                }
 
                channel_member_names(chptr, source_p, 1);
@@ -1041,6 +1041,10 @@ send_join_error(struct Client *source_p, int numeric, const char *name)
                NORMAL_NUMERIC(ERR_NEEDREGGEDNICK);
                NORMAL_NUMERIC(ERR_THROTTLE);
 
+               case ERR_USERONCHANNEL:
+                       sendto_one_numeric(source_p, ERR_USERONCHANNEL,
+                                       form_str(ERR_USERONCHANNEL), source_p->name, name);
+                       break;
                default:
                        sendto_one_numeric(source_p, numeric,
                                        "%s :Cannot join channel", name);