mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 01:16:21 +00:00
Introduce equals_our_barejid()
Instead of always repeating the same pattern, introduce a helper function. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -759,6 +759,12 @@ connection_get_barejid(void)
|
||||
return connection_get_jid()->barejid;
|
||||
}
|
||||
|
||||
gboolean
|
||||
equals_our_barejid(const char* cmp)
|
||||
{
|
||||
return g_strcmp0(connection_get_jid()->barejid, cmp) == 0;
|
||||
}
|
||||
|
||||
char*
|
||||
connection_get_user(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user