~ubuntu-branches/ubuntu/trusty/kvirc/trusty

« back to all changes in this revision

Viewing changes to src/kvirc/kernel/kvi_useraction.h

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _KVI_USERACTION_H_
2
 
#define _KVI_USERACTION_H_
3
 
 
4
 
//=============================================================================
5
 
//
6
 
//   File : kvi_useraction.h
7
 
//   Creation date : Tue Mar 18 2003 13:36:12 by Szymon Stefanek
8
 
//
9
 
//   This file is part of the KVirc irc client distribution
10
 
//   Copyright (C) 2003-2008 Szymon Stefanek (pragma at kvirc dot net)
11
 
//
12
 
//   This program is FREE software. You can redistribute it and/or
13
 
//   modify it under the terms of the GNU General Public License
14
 
//   as published by the Free Software Foundation; either version 2
15
 
//   of the License, or (at your opinion) any later version.
16
 
//
17
 
//   This program is distributed in the HOPE that it will be USEFUL,
18
 
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
 
//   See the GNU General Public License for more details.
21
 
//
22
 
//   You should have received a copy of the GNU General Public License
23
 
//   along with this program. If not, write to the Free Software Foundation,
24
 
//   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
 
//
26
 
//=============================================================================
27
 
 
28
 
/**
29
 
* \file kvi_useraction.h
30
 
* \author Szymon Stefanek
31
 
* \brief This file defines the user action "temperatures"
32
 
*
33
 
* The more "hot" is an action, the more humanity is in it
34
 
*
35
 
* \def KVI_USERACTION_ACTION The action 'action'
36
 
* \def KVI_USERACTION_PRIVMSG The action 'message' (channel message)
37
 
* \def KVI_USERACTION_NOTICE The action 'notice'
38
 
* \def KVI_USERACTION_TOPIC The action 'topic'
39
 
* \def KVI_USERACTION_KICK The action 'kick'
40
 
* \def KVI_USERACTION_NICK The action 'nick'
41
 
* \def KVI_USERACTION_CHANMODE The action 'mode' (channel mode)
42
 
* \def KVI_USERACTION_JOIN The action 'join'
43
 
* \def KVI_USERACTION_PART The action 'part'
44
 
* \def KVI_NUM_USERACTION_TYPES The number of actions' type
45
 
*
46
 
* These are the temperature levels for a single user on a channel
47
 
*
48
 
* \def KVI_MAX_TEMPERATURE Maximum: can't go above this
49
 
* \def KVI_HOT_TEMPERATURE Hot: human
50
 
* \def KVI_HALF_HOT_TEMPERATURE Half hot: signs of humanity
51
 
* \def KVI_MID_TEMPERATURE Mid: uncertain
52
 
* \def KVI_HALF_COLD_TEMPERATURE Half cold: automa ?
53
 
* \def KVI_COLD_TEMPERATURE Cold: bot
54
 
* \def KVI_MIN_TEMPERATURE Minimum: can't drop below this
55
 
*/
56
 
 
57
 
#include "kvi_settings.h"
58
 
 
59
 
#define KVI_USERACTION_ACTION 0
60
 
#define KVI_USERACTION_PRIVMSG 1
61
 
#define KVI_USERACTION_NOTICE 2
62
 
#define KVI_USERACTION_TOPIC 3
63
 
#define KVI_USERACTION_KICK 4
64
 
#define KVI_USERACTION_NICK 5
65
 
#define KVI_USERACTION_CHANMODE 6
66
 
#define KVI_USERACTION_JOIN 7
67
 
#define KVI_USERACTION_PART 8
68
 
 
69
 
#define KVI_NUM_USERACTION_TYPES 9
70
 
 
71
 
#define KVI_MAX_TEMPERATURE 150
72
 
#define KVI_HOT_TEMPERATURE 100
73
 
#define KVI_HALF_HOT_TEMPERATURE 40
74
 
#define KVI_MID_TEMPERATURE 0
75
 
#define KVI_HALF_COLD_TEMPERATURE -40
76
 
#define KVI_COLD_TEMPERATURE -100
77
 
#define KVI_MIN_TEMPERATURE -150
78
 
 
79
 
//
80
 
//  ACTION     30
81
 
//  NOTICE     25
82
 
//  PRIVMSG    25
83
 
//  TOPIC      20
84
 
//  KICK       10
85
 
//  OP         5
86
 
//  VOICE      5
87
 
//  DEOP      -5
88
 
//  DEVOICE   -5
89
 
//  UNBAN     -15
90
 
//  BAN       -20
91
 
//  CHANMODE  -25
92
 
//  NICK      -30
93
 
//  JOIN      -30
94
 
//
95
 
 
96
 
extern KVIRC_API int kvi_getUserActionTemperature(unsigned int uIdx);
97
 
 
98
 
#endif // _KVI_USERACTION_H_