Add query functions for versions string and release revision
[clinton/bobotpp.git] / documentation / bobot++.texinfo
index eb9eadf..28c8361 100644 (file)
@@ -1597,6 +1597,19 @@ These functions allow scripts to get various bits of information.
 @defun bot:getserverlist
 @end defun
 
+@c (0, 0, 0)
+@defun bot:getversion
+Return the long bot version string (same as returned by a CTCP VERSION
+request, e.g. ``bobotpp version 2.3.1.1-8cd2-dirty by
+unknown_lamer@@FreeNode <clinton@@unknownlamer.org>\n1.97 and below by
+eb@@IRCNet <eb@@via.ecp.fr>'').
+@end defun
+
+@c (0, 0, 0)
+@defun bot:getreleasrevision
+Return the bot version only (e.g. ``2.3.1.1-8cd2'').
+@end defun
+
 @c (0, 0, 0)
 @defun bot:flush
 [ Flushes the socket to the server? ]