aboutsummaryrefslogtreecommitdiffstats
path: root/nick.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-07-03 23:22:45 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-07-03 23:22:45 +0200
commit5b52a4895e5a59ff6509f7771f4d8665737688c3 (patch)
tree32c13033b127804864507d8ff90c0c274f8b07e5 /nick.h
parent911f2eb7060f6af6fe8e4e02144cfb7c4bb4cc8b (diff)
Implemented per-account nick lists instead of per-protocol nick lists.
nick_t is dead, instead nicks are just saves in a per-account_t GLib hash table. While doing this, the import_buddies command finally died and text_save() disappeared, because the old file format can't handle most of the new features in this branch anyway. Still have to implement support for the new nick lists in text_load()!
Diffstat (limited to 'nick.h')
-rw-r--r--nick.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/nick.h b/nick.h
index 9ab1ef1e..5274cb13 100644
--- a/nick.h
+++ b/nick.h
@@ -23,17 +23,9 @@
Suite 330, Boston, MA 02111-1307 USA
*/
-typedef struct __NICK
-{
- char *handle;
- struct prpl *proto;
- char *nick;
- struct __NICK *next;
-} nick_t;
-
-void nick_set( irc_t *irc, const char *handle, struct prpl *proto, const char *nick );
-char *nick_get( irc_t *irc, const char *handle, struct prpl *proto, const char *realname );
-void nick_del( irc_t *irc, const char *nick );
+void nick_set( account_t *acc, const char *handle, const char *nick );
+char *nick_get( account_t *acc, const char *handle, const char *realname );
+void nick_del( account_t *acc, const char *handle );
void nick_strip( char *nick );
int nick_ok( const char *nick );