#include <time.h>
#include "dynstuff.h"
#include "plugins.h"
#include "sessions.h"
#include "windows.h"
Idź do kodu źródłowego tego pliku.
|
enum | xstate_t { EKG_XSTATE_BLINK = 1,
EKG_XSTATE_TYPING = 2,
EKG_XSTATE_BLINK = 1,
EKG_XSTATE_TYPING = 2
} |
|
enum | ignore_t {
IGNORE_STATUS = 0x01,
IGNORE_STATUS_DESCR = 0x02,
IGNORE_MSG = 0x04,
IGNORE_DCC = 0x08,
IGNORE_EVENTS = 0x10,
IGNORE_NOTIFY = 0x20,
IGNORE_XOSD = 0x40,
IGNORE_LOG = 0x80,
IGNORE_ALL = 0xFF,
IGNORE_STATUS = 0x01,
IGNORE_STATUS_DESCR = 0x02,
IGNORE_MSG = 0x04,
IGNORE_DCC = 0x08,
IGNORE_EVENTS = 0x10,
IGNORE_NOTIFY = 0x20,
IGNORE_XOSD = 0x40,
IGNORE_LOG = 0x80,
IGNORE_ALL = 0xFF
} |
|
◆ user_private_item_get_int
◆ user_private_item_set
◆ userlist_find_n
◆ userlist_t
◆ ignore_t
Wartości wyliczeń |
---|
IGNORE_STATUS | |
IGNORE_STATUS_DESCR | |
IGNORE_MSG | |
IGNORE_DCC | |
IGNORE_EVENTS | |
IGNORE_NOTIFY | |
IGNORE_XOSD | |
IGNORE_LOG | |
IGNORE_ALL | |
IGNORE_STATUS | |
IGNORE_STATUS_DESCR | |
IGNORE_MSG | |
IGNORE_DCC | |
IGNORE_EVENTS | |
IGNORE_NOTIFY | |
IGNORE_XOSD | |
IGNORE_LOG | |
IGNORE_ALL | |
◆ xstate_t
Wartości wyliczeń |
---|
EKG_XSTATE_BLINK | |
EKG_XSTATE_TYPING | |
EKG_XSTATE_BLINK | |
EKG_XSTATE_TYPING | |
◆ ekg_group_member()
int ekg_group_member |
( |
userlist_t * |
u, |
|
|
const char * |
group |
|
) |
| |
ekg_group_member()
sprawdza czy użytkownik jest członkiem danej grupy.
- Parametry
-
u | - uzytkownik, ktorego chcemy sprawdzic |
group | - grupa ktora chcemy sprawdzic |
- Zwraca
- 1 jeśli tak, 0 jeśli nie.
◆ get_uid()
char* get_uid |
( |
session_t * |
session, |
|
|
const char * |
text |
|
) |
| |
get_uid()
Return and checks if uid passed text is proper for session or it's nickname of smb on session userlist.
- Nota
- It also work with userlist_find() and if text is nickname of smb in session userlist.. Than it return uid of this user. So you shouldn't call userlist_find() with get_uid() as param, cause it's senseless userlist_find() don't check for "$" target, so you must do it by hand. Rest is the same. If there are such user:
userlist_find(s, get_uid(s, target))
return the same as userlist_find(s, target)
If not, even userlist_find(s, get_uid(s, get_uid(s, get_uid(s, target))))
won't help
- Parametry
-
session | - session to check for, if NULL check all sessions (it doesn't look at userlists, in this mode) |
text | - uid to check for, if '$' than check current window. |
- Zobacz również
- userlist_find()
-
get_nickname() - to look for nickname..
-
get_uid_any() - to do all session searching+specified session userlist search.. This function does only all session searching if session is NULL... and than it doesn't look at userlist. Do you feel difference?
- Zwraca
- If we found proper uid for text, than return it. Otherwise NULL
◆ ignored_check()
int ignored_check |
( |
session_t * |
session, |
|
|
const char * |
uid |
|
) |
| |
ignored_check()
czy dany numerek znajduje się na liście ignorowanych.
- Parametry
-
session | - sesja w ktorej mamy szukac uzytkownika |
uid | - uid uzytkownika |
◆ remote_userlist_add_entry()
◆ userlist_find()
◆ userlist_free()
◆ userlist_remove()
◆ userlists_destroy()
◆ ignore_labels