Move irc_* data structures to librb.
This makes the base ircd less cluttered up with data structures that can go elsewhere.
This commit is contained in:
parent
eddf454cd3
commit
a4bf26dd34
31 changed files with 809 additions and 786 deletions
|
@ -146,7 +146,7 @@ mr_nick(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
|
|||
return 0;
|
||||
}
|
||||
|
||||
if(irc_dictionary_find(nd_dict, nick))
|
||||
if(rb_dictionary_find(nd_dict, nick))
|
||||
{
|
||||
sendto_one(source_p, form_str(ERR_UNAVAILRESOURCE),
|
||||
me.name, EmptyString(source_p->name) ? "*" : source_p->name, nick);
|
||||
|
@ -198,7 +198,7 @@ m_nick(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
|
|||
return 0;
|
||||
}
|
||||
|
||||
if(irc_dictionary_find(nd_dict, nick))
|
||||
if(rb_dictionary_find(nd_dict, nick))
|
||||
{
|
||||
sendto_one(source_p, form_str(ERR_UNAVAILRESOURCE),
|
||||
me.name, EmptyString(source_p->name) ? "*" : source_p->name, nick);
|
||||
|
@ -754,7 +754,7 @@ change_remote_nick(struct Client *client_p, struct Client *source_p,
|
|||
del_from_client_hash(source_p->name, source_p);
|
||||
|
||||
/* invalidate nick delay when a remote client uses the nick.. */
|
||||
if((nd = irc_dictionary_retrieve(nd_dict, nick)))
|
||||
if((nd = rb_dictionary_retrieve(nd_dict, nick)))
|
||||
free_nd_entry(nd);
|
||||
|
||||
strcpy(source_p->name, nick);
|
||||
|
@ -1076,7 +1076,7 @@ register_client(struct Client *client_p, struct Client *server,
|
|||
}
|
||||
|
||||
/* remove any nd entries for this nick */
|
||||
if((nd = irc_dictionary_retrieve(nd_dict, nick)))
|
||||
if((nd = rb_dictionary_retrieve(nd_dict, nick)))
|
||||
free_nd_entry(nd);
|
||||
|
||||
add_to_client_hash(nick, source_p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue