Commit bc40477
committed
server.DeleteMessage catches channel or client==nil
Fixes #2020
Calling /msg histserv delete #wrongchan <msgid> returns spurrious success
message. Calling /msg histserv delete <randomchars> <msgid> returns
similar message.
These would lead to the pointer hist == nil, and
server.historyDB.DeleteMsgid() would return nil.
Returns errNoSuchChannel or errInvalidTarget if channel or client == nil1 parent f6f7315 commit bc40477
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
| 1064 | + | |
| 1065 | + | |
1064 | 1066 | | |
1065 | 1067 | | |
1066 | 1068 | | |
1067 | 1069 | | |
1068 | 1070 | | |
1069 | 1071 | | |
1070 | 1072 | | |
| 1073 | + | |
| 1074 | + | |
1071 | 1075 | | |
1072 | 1076 | | |
1073 | 1077 | | |
| |||
0 commit comments