Browse Source

Don't truncate bot's join time on .reset

Bryan Drewery 10 years ago
parent
commit
75cfe3871c
2 changed files with 3 additions and 1 deletions
  1. 1 0
      doc/UPDATES.md
  2. 2 1
      src/mod/irc.mod/chan.cc

+ 1 - 0
doc/UPDATES.md

@@ -12,6 +12,7 @@
   * Fix invites not being applied in -dynamicinvites channels when +i is set.
   * Fix not handling auto-op in minutely channel rechecks.
   * Fix auto-voice and auto-op not applying after a nick change.
+  * Don't truncate bot's join time on .reset.
 
 # 1.4.6
   * Disable demo TCL support by default to prevent confusion during build.

+ 2 - 1
src/mod/irc.mod/chan.cc

@@ -2122,7 +2122,8 @@ static int got315(char *from, char *msg)
     force_join_chan(chan);
   } else {
     me->is_me = 1;
-    me->joined = now;				/* set this to keep the whining masses happy */
+    if (!me->joined)
+      me->joined = now;				/* set this to keep the whining masses happy */
     if (me_op(chan))
       recheck_channel(chan, 2);
     else if (chan->channel.members == 1)