X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=network%2Fbuiltin_cmds.cpp;h=c7c3a9d8242af68c4d23dad4ba4f20244c802aee;hp=3bffb1f05c33d1f0b0ff49905e06712df3fbcefe;hb=09494f0681def3c6cf585eda25b8bb236560ddac;hpb=8b192b08f3df4ce0e7cc4a08564645c76efa688d diff --git a/network/builtin_cmds.cpp b/network/builtin_cmds.cpp index 3bffb1f0..c7c3a9d8 100644 --- a/network/builtin_cmds.cpp +++ b/network/builtin_cmds.cpp @@ -22,19 +22,25 @@ #include "messages.h" +/** This macro marks strings as translateable for Qt's linguist tools */ #define _(str) QT_TR_NOOP(str) + /** Defines the message codes according to RFCs 1495/281x. * Named commands have a negative enum value. */ +/** \NOTE: Function handlers _must_ be global functions or static methods! */ + +/** Set handler addresses to 0 to use the default (server) handler. */ + BuiltinCmd builtins[] = { { _("admin"), _("Get information about the administrator of a server."), _("[server]"), _("server: Server"), - &Message::test1 }, + 0, 0 }, - { 0, 0, 0, 0, 0 } + { 0, 0, 0, 0, 0, 0 } };