diff options
author | Fate <fate-tmw@googlemail.com> | 2008-12-05 23:35:35 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-12-05 23:35:35 -0700 |
commit | 369e540d6cb78874c4951b66b1668468168f496b (patch) | |
tree | 8545fac5a6b1e0f0858d8fb1c8b12c4eb16f30c6 /src/gui/chat.h | |
parent | 9559fdb347054e945940980efdbbe83615ce9733 (diff) | |
download | mana-client-369e540d6cb78874c4951b66b1668468168f496b.tar.gz mana-client-369e540d6cb78874c4951b66b1668468168f496b.tar.bz2 mana-client-369e540d6cb78874c4951b66b1668468168f496b.tar.xz mana-client-369e540d6cb78874c4951b66b1668468168f496b.zip |
added /w shortcut for whispering
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r-- | src/gui/chat.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h index 6e412bf6..76a8146c 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -46,18 +46,20 @@ class ScrollArea; #define BY_LOGGER 6 -#define IS_ANNOUNCE "/announce " -#define IS_ANNOUNCE_LENGTH 10 -#define IS_HELP "/help" -#define IS_HELP_LENGTH 5 -#define IS_WHERE "/where" -#define IS_WHERE_LENGTH 6 -#define IS_WHO "/who" -#define IS_WHO_LENGTH 4 -#define IS_CLEAR "/clear" -#define IS_CLEAR_LENGTH 6 -#define IS_WHISPER "/whisper" -#define IS_WHISPER_LENGTH 8 +#define IS_ANNOUNCE "/announce " +#define IS_ANNOUNCE_LENGTH 10 +#define IS_HELP "/help" +#define IS_HELP_LENGTH 5 +#define IS_WHERE "/where" +#define IS_WHERE_LENGTH 6 +#define IS_WHO "/who" +#define IS_WHO_LENGTH 4 +#define IS_CLEAR "/clear" +#define IS_CLEAR_LENGTH 6 +#define IS_WHISPER "/whisper" +#define IS_WHISPER_LENGTH 8 +#define IS_SHORT_WHISPER "/w" +#define IS_SHORT_WHISPER_LENGTH 2 /** * gets in between usernick and message text depending on @@ -219,6 +221,9 @@ class ChatWindow : public Window, public gcn::ActionListener, Network *mNetwork; bool mTmpVisible; + void + whisper(const std::string &nick, std::string msg, int prefixlen); + /** One item in the chat log */ struct CHATLOG { |