callerid: unregister usermode +g if usermode +G cannot be allocated
This commit is contained in:
parent
5419d3c286
commit
915bb5614b
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,8 @@ um_callerid_modinit(void)
|
||||||
user_modes['G'] = find_umode_slot();
|
user_modes['G'] = find_umode_slot();
|
||||||
if (!user_modes['G'])
|
if (!user_modes['G'])
|
||||||
{
|
{
|
||||||
|
user_modes['g'] = 0;
|
||||||
|
|
||||||
ierror("um_callerid: unable to allocate usermode slot for +G; unloading module.");
|
ierror("um_callerid: unable to allocate usermode slot for +G; unloading module.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue