diff options
author | Fate <fate-tmw@googlemail.com> | 2008-12-06 20:02:33 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-12-06 20:02:33 -0700 |
commit | 28fa707f1ab22e7cac8abff703d534aec3228d5c (patch) | |
tree | bc0d906aa6d414b867eda5df02520b5f707216f1 /src/gui/chat.h | |
parent | 704f58c9033599c871c176df68ffe7ac3bc8c969 (diff) | |
parent | 7b11d719316e84d97e95a32de2a74803aa18e5da (diff) | |
download | mana-28fa707f1ab22e7cac8abff703d534aec3228d5c.tar.gz mana-28fa707f1ab22e7cac8abff703d534aec3228d5c.tar.bz2 mana-28fa707f1ab22e7cac8abff703d534aec3228d5c.tar.xz mana-28fa707f1ab22e7cac8abff703d534aec3228d5c.zip |
Merge branch 'master' into statuseffects
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 { |