]> gitweb.factorcode.org Git - factor.git/commitdiff
irc.gitbot: Add formatting for topic change logs
authorBruno Deferrari <utizoc@gmail.com>
Thu, 16 Apr 2009 12:32:17 +0000 (09:32 -0300)
committerBruno Deferrari <utizoc@gmail.com>
Thu, 16 Apr 2009 12:32:23 +0000 (09:32 -0300)
extra/irc/client/base/base.factor
extra/irc/logbot/log-line/log-line.factor

index f54e18ac4bf94537d4e1a6f47a05c7b84fc55fe2..318a1ab1e3225f96a3e475296217b3908417f858 100644 (file)
@@ -19,7 +19,7 @@ SYMBOL: current-irc-client
 
 UNION: to-target privmsg notice ;
 UNION: to-channel join part topic kick rpl-channel-modes
-                  rpl-notopic rpl-topic rpl-names rpl-names-end ;
+                  topic rpl-names rpl-names-end ;
 UNION: to-one-chat to-target to-channel mode ;
 UNION: to-many-chats nick quit ;
 UNION: to-all-chats irc-end irc-disconnected irc-connected ;
index b3af41ad3de34e8e0e53f807b6d83f26ef8900b0..255c46e5f37b77924799d133ab71dbe787213c8e 100644 (file)
@@ -35,3 +35,7 @@ M: participant-mode >log-line
 
 M: nick >log-line
     [ "* " % dup sender>> % " is now known as " % nickname>> % ] "" make ;
+
+M: topic >log-line
+    [ "* " % dup sender>> % " has set the topic for " % dup channel>> %
+      ": \"" % topic>> % "\"" % ] "" make ;