Skip to content

Commit ac53cae

Browse files
committed
M2.2: derive state identity scopes from IRC context
1 parent a9e231e commit ac53cae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/bot_state.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef BOT_STATE_H
22
#define BOT_STATE_H
33
#include <stddef.h>
4+
#include "irc_core.h"
45
typedef struct bot_state bot_state;
56
bot_state *bot_state_create(void);
67
void bot_state_destroy(bot_state *s);
@@ -11,4 +12,6 @@ void bot_state_clear(bot_state *s);
1112
size_t bot_state_count(const bot_state *s);
1213
int bot_state_scope_user(const char *nick,char *out,size_t out_size);
1314
int bot_state_scope_channel(const char *channel,char *out,size_t out_size);
15+
int bot_state_scope_event_user(const irc_event *event,char *out,size_t out_size);
16+
int bot_state_scope_event_target(const irc_event *event,char *out,size_t out_size);
1417
#endif

0 commit comments

Comments
 (0)